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" "os"
"strings" "strings"
"github.com/jstemmer/go-junit-report/v2/pkg/gtr" "github.com/jstemmer/go-junit-report/v2/gtr"
"github.com/jstemmer/go-junit-report/v2/pkg/junit" "github.com/jstemmer/go-junit-report/v2/junit"
"github.com/jstemmer/go-junit-report/v2/pkg/parser/gotest" "github.com/jstemmer/go-junit-report/v2/parser/gotest"
) )
var ( var (

View File

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

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "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. // Testsuites is a collection of JUnit testsuites.

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"io" "io"
"time" "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. // NewJSONParser returns a new Go test json output parser.

View File

@ -3,7 +3,7 @@ package gotest
import ( import (
"time" "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. // reportBuilder helps build a test Report from a collection of events.

View File

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