Progress testing without cgo a bit

This commit is contained in:
Matt Joiner 2021-05-21 14:16:59 +10:00
parent b21aebeaae
commit a60a4c9117
4 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package sqliteStorage
import (
@ -9,6 +12,7 @@ import (
"crawshaw.io/sqlite"
"crawshaw.io/sqlite/sqlitex"
"github.com/anacrolix/torrent/metainfo"
"github.com/anacrolix/torrent/storage"
)

View File

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package main
import (
@ -7,6 +10,7 @@ import (
"crawshaw.io/sqlite"
"github.com/alexflint/go-arg"
sqliteStorage "github.com/anacrolix/torrent/storage/sqlite"
)

View File

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package sqliteStorage
import (
@ -20,6 +23,7 @@ import (
"crawshaw.io/sqlite/sqlitex"
"github.com/anacrolix/missinggo/iter"
"github.com/anacrolix/missinggo/v2/resource"
"github.com/anacrolix/torrent/storage"
)

View File

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package sqliteStorage
import (
@ -12,12 +15,13 @@ import (
"time"
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/torrent/storage"
test_storage "github.com/anacrolix/torrent/storage/test"
"github.com/dustin/go-humanize"
qt "github.com/frankban/quicktest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/torrent/storage"
test_storage "github.com/anacrolix/torrent/storage/test"
)
func newConnsAndProv(t *testing.T, opts NewPoolOpts) (ConnPool, *provider) {