gorond test files

This commit is contained in:
Matt Joiner 2023-05-12 13:47:47 +10:00
parent 0b6209062d
commit 044be4820f
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
18 changed files with 31 additions and 31 deletions

View File

@ -6,6 +6,7 @@ import (
"testing"
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/torrent/bencode"
)

View File

@ -7,10 +7,11 @@ import (
"os"
"testing"
"github.com/anacrolix/torrent/internal/testutil"
"github.com/anacrolix/torrent/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/torrent/internal/testutil"
"github.com/anacrolix/torrent/storage"
)
func TestBoltPieceCompletionClosedWhenClientClosed(t *testing.T) {

View File

@ -13,16 +13,14 @@ import (
"testing/iotest"
"time"
"github.com/anacrolix/dht/v2"
"github.com/anacrolix/log"
"github.com/anacrolix/missinggo/v2"
"github.com/anacrolix/missinggo/v2/filecache"
"github.com/frankban/quicktest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/log"
"github.com/anacrolix/dht/v2"
"github.com/anacrolix/missinggo/v2"
"github.com/anacrolix/missinggo/v2/filecache"
"github.com/anacrolix/torrent/bencode"
"github.com/anacrolix/torrent/internal/testutil"
"github.com/anacrolix/torrent/iplist"

View File

@ -3,9 +3,8 @@ package nestedmaps
import (
"testing"
qt "github.com/frankban/quicktest"
g "github.com/anacrolix/generics"
qt "github.com/frankban/quicktest"
)
func TestNestedMaps(t *testing.T) {

View File

@ -5,7 +5,6 @@ import (
"testing"
"github.com/anacrolix/log"
"github.com/anacrolix/missinggo/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View File

@ -6,9 +6,9 @@ import (
"net"
"testing"
"github.com/anacrolix/dht/v2/krpc"
"github.com/stretchr/testify/require"
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/torrent/bencode"
)

View File

@ -9,11 +9,10 @@ import (
"sync"
"testing"
"golang.org/x/time/rate"
"github.com/frankban/quicktest"
qt "github.com/frankban/quicktest"
"github.com/stretchr/testify/require"
"golang.org/x/time/rate"
"github.com/anacrolix/torrent/metainfo"
pp "github.com/anacrolix/torrent/peer_protocol"

View File

@ -4,10 +4,10 @@ import (
"net"
"testing"
"github.com/anacrolix/dht/v2/krpc"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/dht/v2/krpc"
pp "github.com/anacrolix/torrent/peer_protocol"
)

View File

@ -3,9 +3,10 @@ package torrent
import (
"testing"
pp "github.com/anacrolix/torrent/peer_protocol"
"github.com/bradfitz/iter"
qt "github.com/frankban/quicktest"
pp "github.com/anacrolix/torrent/peer_protocol"
)
func keysAsSlice(m map[Request]struct{}) (sl []Request) {

View File

@ -9,7 +9,6 @@ import (
"testing"
"github.com/anacrolix/log"
qt "github.com/frankban/quicktest"
)

View File

@ -6,8 +6,9 @@ import (
"path/filepath"
"testing"
"github.com/anacrolix/torrent/metainfo"
qt "github.com/frankban/quicktest"
"github.com/anacrolix/torrent/metainfo"
)
func init() {

View File

@ -12,11 +12,12 @@ import (
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/squirrel"
"github.com/dustin/go-humanize"
qt "github.com/frankban/quicktest"
"github.com/anacrolix/torrent/storage"
test_storage "github.com/anacrolix/torrent/storage/test"
"github.com/anacrolix/torrent/test"
"github.com/dustin/go-humanize"
qt "github.com/frankban/quicktest"
)
func TestLeecherStorage(t *testing.T) {

View File

@ -9,14 +9,13 @@ import (
"testing/iotest"
"github.com/anacrolix/log"
pp "github.com/anacrolix/torrent/peer_protocol"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/internal/testutil"
"github.com/anacrolix/torrent/metainfo"
pp "github.com/anacrolix/torrent/peer_protocol"
"github.com/anacrolix/torrent/storage"
)

View File

@ -10,14 +10,14 @@ import (
"time"
"github.com/anacrolix/missinggo/v2/filecache"
qt "github.com/frankban/quicktest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/time/rate"
"github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/internal/testutil"
"github.com/anacrolix/torrent/storage"
qt "github.com/frankban/quicktest"
"golang.org/x/time/rate"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
type fileCacheClientStorageFactoryParams struct {

View File

@ -4,11 +4,12 @@ import (
"net/url"
"testing"
"github.com/anacrolix/torrent/bencode"
"github.com/anacrolix/torrent/tracker/udp"
qt "github.com/frankban/quicktest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/torrent/bencode"
"github.com/anacrolix/torrent/tracker/udp"
)
func TestUnmarshalHTTPResponsePeerDicts(t *testing.T) {

View File

@ -10,6 +10,7 @@ import (
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/missinggo/v2"
"github.com/anacrolix/torrent/tracker/udp"
)

View File

@ -15,9 +15,10 @@ import (
"github.com/anacrolix/dht/v2/krpc"
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/torrent/tracker/udp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/torrent/tracker/udp"
)
var trackers = []string{

View File

@ -4,7 +4,6 @@ import (
"testing"
"github.com/anacrolix/log"
"github.com/stretchr/testify/assert"
)