move to text logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -3,10 +3,11 @@ package coverage
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"git.unistack.org/unistack-org/pkgdash/internal/models"
|
||||
"golang.org/x/tools/cover"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"go.unistack.org/pkgdash/internal/models"
|
||||
"golang.org/x/tools/cover"
|
||||
)
|
||||
|
||||
func Analyze(ctx context.Context, dataCoverage io.Reader, pack models.Package) (float64, error) {
|
||||
@@ -43,7 +44,7 @@ func Analyze(ctx context.Context, dataCoverage io.Reader, pack models.Package) (
|
||||
fmt.Printf("add new keys, was: %d, has: %d", cur, len(mapCover))
|
||||
}
|
||||
|
||||
//TODO add calculate full
|
||||
// TODO add calculate full
|
||||
|
||||
return 0, nil
|
||||
}
|
||||
|
@@ -2,10 +2,11 @@ package coverage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.unistack.org/unistack-org/pkgdash/internal/models"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go.unistack.org/pkgdash/internal/models"
|
||||
)
|
||||
|
||||
func Test_Calculate(t *testing.T) {
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.unistack.org/unistack-org/pkgdash/internal/models"
|
||||
"go.unistack.org/pkgdash/internal/models"
|
||||
)
|
||||
|
||||
func TestGenerate(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user