Move packages out of pkg/

This commit is contained in:
Joël Stemmer 2022-04-20 19:34:40 +01:00
parent 7b21e70768
commit d84b066208
13 changed files with 17 additions and 16 deletions

View File

@ -9,9 +9,9 @@ import (
"os"
"strings"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/pkg/junit"
"github.com/jstemmer/go-junit-report/v2/pkg/parser/gotest"
"github.com/jstemmer/go-junit-report/v2/gtr"
"github.com/jstemmer/go-junit-report/v2/junit"
"github.com/jstemmer/go-junit-report/v2/parser/gotest"
)
var (

View File

@ -12,8 +12,8 @@ import (
"testing"
"time"
"github.com/jstemmer/go-junit-report/v2/pkg/junit"
"github.com/jstemmer/go-junit-report/v2/pkg/parser/gotest"
"github.com/jstemmer/go-junit-report/v2/junit"
"github.com/jstemmer/go-junit-report/v2/parser/gotest"
"github.com/google/go-cmp/cmp"
)

View File

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/gtr"
)
// Testsuites is a collection of JUnit testsuites.

View File

@ -4,7 +4,7 @@ import (
"encoding/xml"
"testing"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/gtr"
"github.com/google/go-cmp/cmp"
)

View File

@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/gtr"
)
var (

View File

@ -6,8 +6,9 @@ import (
"testing"
"time"
"github.com/jstemmer/go-junit-report/v2/gtr"
"github.com/google/go-cmp/cmp"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
)
var (
@ -289,8 +290,8 @@ func TestReport(t *testing.T) {
NsPerOp: 100,
},
{
Name: "BenchmarkTwo",
Result: gtr.Fail,
Name: "BenchmarkTwo",
Result: gtr.Fail,
},
},
Output: []string{"goarch: amd64"},

View File

@ -6,7 +6,7 @@ import (
"io"
"time"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/gtr"
)
// NewJSONParser returns a new Go test json output parser.

View File

@ -3,7 +3,7 @@ package gotest
import (
"time"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/gtr"
)
// reportBuilder helps build a test Report from a collection of events.

View File

@ -12,9 +12,9 @@ import (
"strings"
"time"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr"
"github.com/jstemmer/go-junit-report/v2/pkg/junit"
"github.com/jstemmer/go-junit-report/v2/pkg/parser/gotest"
"github.com/jstemmer/go-junit-report/v2/gtr"
"github.com/jstemmer/go-junit-report/v2/junit"
"github.com/jstemmer/go-junit-report/v2/parser/gotest"
)
var verbose bool