"sync"
"testing"
+ qt "github.com/frankban/quicktest"
+
"github.com/anacrolix/torrent/metainfo"
"github.com/anacrolix/torrent/storage"
- qt "github.com/frankban/quicktest"
)
const (
// This might not apply if users of this benchmark don't cache with the expected capacity.
c.Assert(pi.Completion(), qt.Equals, storage.Completion{Complete: false, Ok: true})
c.Assert(pi.MarkComplete(), qt.IsNil)
- c.Assert(pi.Completion(), qt.Equals, storage.Completion{true, true})
+ c.Assert(pi.Completion(), qt.Equals, storage.Completion{Complete: true, Ok: true})
n, err := pi.WriteTo(bytes.NewBuffer(readData[:0]))
b.StopTimer()
c.Assert(err, qt.IsNil)