Progress testing without cgo a bit
This commit is contained in:
parent
b21aebeaae
commit
a60a4c9117
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue