move to text logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-12-07 16:21:00 +03:00
parent c5f3fa325e
commit 07f67fd1d7
6 changed files with 13 additions and 28 deletions

View File

@@ -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
}

View File

@@ -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) {

View File

@@ -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) {