]> Sergey Matveev's repositories - btrtrc.git/blob - torrent_mmap_test.go
Drop support for go 1.20
[btrtrc.git] / torrent_mmap_test.go
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 }