(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestDataFile_Err(t *testing.T) { |
| 44 | if runtime.GOOS == "windows" { |
| 45 | t.Skip() |
| 46 | } |
| 47 | fm := NewFileManager(MMap, 1024, 0.5, 256*MB) |
| 48 | defer func() { _ = fm.Close() }() |
| 49 | _, err := fm.GetDataFile(filePath, -1) |
| 50 | defer func() { |
| 51 | _ = fm.Close() |
| 52 | _ = os.Remove(filePath) |
| 53 | }() |
| 54 | |
| 55 | assert.NotNil(t, err) |
| 56 | } |
| 57 | |
| 58 | func TestDataFile1(t *testing.T) { |
| 59 | if runtime.GOOS == "windows" { |
nothing calls this directly
no test coverage detected