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
|
package sqliteStorage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -9,6 +12,7 @@ import (
|
||||||
|
|
||||||
"crawshaw.io/sqlite"
|
"crawshaw.io/sqlite"
|
||||||
"crawshaw.io/sqlite/sqlitex"
|
"crawshaw.io/sqlite/sqlitex"
|
||||||
|
|
||||||
"github.com/anacrolix/torrent/metainfo"
|
"github.com/anacrolix/torrent/metainfo"
|
||||||
"github.com/anacrolix/torrent/storage"
|
"github.com/anacrolix/torrent/storage"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
//go:build cgo
|
||||||
|
// +build cgo
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -7,6 +10,7 @@ import (
|
||||||
|
|
||||||
"crawshaw.io/sqlite"
|
"crawshaw.io/sqlite"
|
||||||
"github.com/alexflint/go-arg"
|
"github.com/alexflint/go-arg"
|
||||||
|
|
||||||
sqliteStorage "github.com/anacrolix/torrent/storage/sqlite"
|
sqliteStorage "github.com/anacrolix/torrent/storage/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
//go:build cgo
|
||||||
|
// +build cgo
|
||||||
|
|
||||||
package sqliteStorage
|
package sqliteStorage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -20,6 +23,7 @@ import (
|
||||||
"crawshaw.io/sqlite/sqlitex"
|
"crawshaw.io/sqlite/sqlitex"
|
||||||
"github.com/anacrolix/missinggo/iter"
|
"github.com/anacrolix/missinggo/iter"
|
||||||
"github.com/anacrolix/missinggo/v2/resource"
|
"github.com/anacrolix/missinggo/v2/resource"
|
||||||
|
|
||||||
"github.com/anacrolix/torrent/storage"
|
"github.com/anacrolix/torrent/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
//go:build cgo
|
||||||
|
// +build cgo
|
||||||
|
|
||||||
package sqliteStorage
|
package sqliteStorage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -12,12 +15,13 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
_ "github.com/anacrolix/envpprof"
|
_ "github.com/anacrolix/envpprof"
|
||||||
"github.com/anacrolix/torrent/storage"
|
|
||||||
test_storage "github.com/anacrolix/torrent/storage/test"
|
|
||||||
"github.com/dustin/go-humanize"
|
"github.com/dustin/go-humanize"
|
||||||
qt "github.com/frankban/quicktest"
|
qt "github.com/frankban/quicktest"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"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) {
|
func newConnsAndProv(t *testing.T, opts NewPoolOpts) (ConnPool, *provider) {
|
||||||
|
|
Loading…
Reference in New Issue