MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / TestDataFile_Err

Function TestDataFile_Err

datafile_test.go:43–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func 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
58func TestDataFile1(t *testing.T) {
59 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 5

CloseMethod · 0.95
GetDataFileMethod · 0.95
NewFileManagerFunction · 0.85
SkipMethod · 0.65
RemoveMethod · 0.45

Tested by

no test coverage detected