"testing"
"github.com/anacrolix/dht/v2/krpc"
+
"github.com/anacrolix/torrent/bencode"
)
"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) {
"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"
import (
"testing"
- qt "github.com/frankban/quicktest"
-
g "github.com/anacrolix/generics"
+ qt "github.com/frankban/quicktest"
)
func TestNestedMaps(t *testing.T) {
"testing"
"github.com/anacrolix/log"
-
"github.com/anacrolix/missinggo/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"net"
"testing"
+ "github.com/anacrolix/dht/v2/krpc"
"github.com/stretchr/testify/require"
- "github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/torrent/bencode"
)
"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"
"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"
)
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) {
"testing"
"github.com/anacrolix/log"
-
qt "github.com/frankban/quicktest"
)
"path/filepath"
"testing"
- "github.com/anacrolix/torrent/metainfo"
qt "github.com/frankban/quicktest"
+
+ "github.com/anacrolix/torrent/metainfo"
)
func init() {
_ "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) {
"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"
)
"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 {
"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) {
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/missinggo/v2"
+
"github.com/anacrolix/torrent/tracker/udp"
)
"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{
"testing"
"github.com/anacrolix/log"
-
"github.com/stretchr/testify/assert"
)