github.com/anacrolix/torrent@v1.61.0/torrent_mmap_test.go (about) 1 //go:build !wasm 2 // +build !wasm 3 4 package torrent 5 6 import ( 7 "testing" 8 9 "github.com/anacrolix/torrent/storage" 10 ) 11 12 func TestEmptyFilesAndZeroPieceLengthWithMMapStorage(t *testing.T) { 13 cfg := TestingConfig(t) 14 ci := storage.NewMMap(cfg.DataDir) 15 defer ci.Close() 16 cfg.DefaultStorage = ci 17 testEmptyFilesAndZeroPieceLength(t, cfg) 18 }