Move testlib to internal

This commit is contained in:
9seconds
2021-04-02 21:32:06 +03:00
parent 2fe04c7c9b
commit 24fdec6694
19 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -6,8 +6,8 @@ import (
"testing" "testing"
"github.com/9seconds/mtg/v2/config" "github.com/9seconds/mtg/v2/config"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/mtglib" "github.com/9seconds/mtg/v2/mtglib"
"github.com/9seconds/mtg/v2/testlib"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/xeipuuv/gojsonschema" "github.com/xeipuuv/gojsonschema"
+1 -1
View File
@@ -4,8 +4,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/mtglib" "github.com/9seconds/mtg/v2/mtglib"
"github.com/9seconds/mtg/v2/testlib"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"github.com/9seconds/mtg/v2/cli" "github.com/9seconds/mtg/v2/cli"
"github.com/9seconds/mtg/v2/testlib" "github.com/9seconds/mtg/v2/internal/testlib"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
+1 -1
View File
@@ -10,10 +10,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/ipblocklist" "github.com/9seconds/mtg/v2/ipblocklist"
"github.com/9seconds/mtg/v2/logger" "github.com/9seconds/mtg/v2/logger"
"github.com/9seconds/mtg/v2/network" "github.com/9seconds/mtg/v2/network"
"github.com/9seconds/mtg/v2/testlib"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
+1 -1
View File
@@ -4,8 +4,8 @@ import (
"io" "io"
"testing" "testing"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/logger" "github.com/9seconds/mtg/v2/logger"
"github.com/9seconds/mtg/v2/testlib"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/9seconds/mtg/v2/testlib" "github.com/9seconds/mtg/v2/internal/testlib"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
+1 -1
View File
@@ -7,9 +7,9 @@ import (
"math/rand" "math/rand"
"testing" "testing"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/mtglib/internal/faketls" "github.com/9seconds/mtg/v2/mtglib/internal/faketls"
"github.com/9seconds/mtg/v2/mtglib/internal/faketls/record" "github.com/9seconds/mtg/v2/mtglib/internal/faketls/record"
"github.com/9seconds/mtg/v2/testlib"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
@@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"testing" "testing"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/mtglib/internal/obfuscated2" "github.com/9seconds/mtg/v2/mtglib/internal/obfuscated2"
"github.com/9seconds/mtg/v2/testlib"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
@@ -7,8 +7,8 @@ import (
"encoding/base64" "encoding/base64"
"testing" "testing"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/mtglib/internal/obfuscated2" "github.com/9seconds/mtg/v2/mtglib/internal/obfuscated2"
"github.com/9seconds/mtg/v2/testlib"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"io" "io"
"testing" "testing"
"github.com/9seconds/mtg/v2/testlib" "github.com/9seconds/mtg/v2/internal/testlib"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
+1 -1
View File
@@ -6,8 +6,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/9seconds/mtg/v2/internal/testlib"
"github.com/9seconds/mtg/v2/mtglib/internal/relay" "github.com/9seconds/mtg/v2/mtglib/internal/relay"
"github.com/9seconds/mtg/v2/testlib"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
@@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/9seconds/mtg/v2/testlib" "github.com/9seconds/mtg/v2/internal/testlib"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net" "net"
"testing" "testing"
"github.com/9seconds/mtg/v2/testlib" "github.com/9seconds/mtg/v2/internal/testlib"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/9seconds/mtg/v2/testlib" "github.com/9seconds/mtg/v2/internal/testlib"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )