]> Sergey Matveev's repositories - btrtrc.git/commitdiff
gorond test files
authorMatt Joiner <anacrolix@gmail.com>
Fri, 12 May 2023 03:47:47 +0000 (13:47 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 12 May 2023 03:47:47 +0000 (13:47 +1000)
18 files changed:
bencode/bench_test.go
client-nowasm_test.go
client_test.go
internal/nestedmaps/nestedmaps_test.go
network_test.go
peer_protocol/pex_test.go
peerconn_test.go
pex_test.go
requesting_test.go
reuse_test.go
storage/safe-path_test.go
storage/sqlite/sqlite-storage_test.go
test/issue377_test.go
test/transfer_test.go
tracker/http/http_test.go
tracker/udp-server_test.go
tracker/udp_test.go
utp_test.go

index d6faafb76a124989f40abd52b26ecf1b453118d4..5cf1ce894c01e3a8b515976d1d8102b200e3187e 100644 (file)
@@ -6,6 +6,7 @@ import (
        "testing"
 
        "github.com/anacrolix/dht/v2/krpc"
+
        "github.com/anacrolix/torrent/bencode"
 )
 
index 62c5a1dbbf83b8210d4bd4fcac724c0cdeabe677..5c7f6251f6929517307067f584ce3ce7848bc41b 100644 (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) {
index c86243956ab5e8a9b93184c5561490c890b7a52f..e23ca1fa2d8d609e6df9249b25b47e4defbc0245 100644 (file)
@@ -13,15 +13,13 @@ import (
        "testing/iotest"
        "time"
 
-       "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/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/torrent/bencode"
        "github.com/anacrolix/torrent/internal/testutil"
index af808eb901f795436b8f8c70e65480a123e1eb80..97916afbbf448364ac549af4eee49e7b4cf05532 100644 (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) {
index f6b1bc8cf6356b9df033e91cb8122e5fe9f29d1e..5e912cc451454df73f2dbcb0f780350efc9b3d46 100644 (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"
index cc45059e7bd04e906093762d0583e7401de9f1be..5e5e96c14a3f0854f8c366bb63f3dd3b3cb9352a 100644 (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"
 )
 
index f0a5a6fd9a1489d5f375fc8264fc0baaaaaa627a..e418e07e670fe85cf02315f8b93f614f2c58f80a 100644 (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"
index 2b973296a68a8f510d35c5b8ce50a20e3cf812ea..7d8f6d5d0528e8c14e9e58f75b2fe8fd6e9fed43 100644 (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"
 )
 
index 5e58df5c9733329c2f50e45b76ebfe6941d045c7..6c791a58c05994bd2375fb6fb3d2750ca5defac3 100644 (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) {
index 40df9a3e4778bbda4f0df70f99e996a610cb6089..ba53f288766e39cd687ce73fc2b1244557ab203c 100644 (file)
@@ -9,7 +9,6 @@ import (
        "testing"
 
        "github.com/anacrolix/log"
-
        qt "github.com/frankban/quicktest"
 )
 
index 674da8fc023b42d06655b57d5fb00123ba17e74b..452ab283ff6c73701b2fac0a3cc54c4543c54e95 100644 (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() {
index 390c68f47e18ec80c346ff9655819a8559bd89a4..d2f16af7ee0449911b3cb0ea855243d64244f14c 100644 (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) {
index 48e5abfbf3e15ebf000a90be98f3d3402bc507a9..5b0e659fee5709e0dfbacf9c01d07955a58f354b 100644 (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"
 )
 
index fa159326a908f9526a1a730e45296adfe82d18ce..a008d26f4a9424599d48cd6ab493c23c10e9a4dd 100644 (file)
@@ -10,14 +10,14 @@ import (
        "time"
 
        "github.com/anacrolix/missinggo/v2/filecache"
-       "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"
+       "golang.org/x/time/rate"
+
+       "github.com/anacrolix/torrent"
+       "github.com/anacrolix/torrent/internal/testutil"
+       "github.com/anacrolix/torrent/storage"
 )
 
 type fileCacheClientStorageFactoryParams struct {
index 7fd98a5d1bda74666c2d4b44c2d5954f1da7fe6e..4e5efaf5721c1e4fad9cc379e90c1f6aaef788e4 100644 (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) {
index 7308ed0d8ef322514cfff25b1331976ffc564fa1..84408bfd1c253567908b24b2a4f85fb9ce9b6b08 100644 (file)
@@ -10,6 +10,7 @@ import (
 
        "github.com/anacrolix/dht/v2/krpc"
        "github.com/anacrolix/missinggo/v2"
+
        "github.com/anacrolix/torrent/tracker/udp"
 )
 
index 751e41b942b2c2d45f544087f7f6d6a622fec905..cf18e0de9f2dc20fc07f7f13fd9a6b99fc48fe03 100644 (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{
index 64dd4cc09c0d61feaf91dfaa31d83fd813a8dee0..18d62cabca3a995346cb92e54d4c55129555e010 100644 (file)
@@ -4,7 +4,6 @@ import (
        "testing"
 
        "github.com/anacrolix/log"
-
        "github.com/stretchr/testify/assert"
 )