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

Function TestDataFile_Err_Path

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

Source from the content-addressed store, hash-verified

161}
162
163func TestDataFile_Err_Path(t *testing.T) {
164 fm := NewFileManager(FileIO, 1024, 0.5, 256*MB)
165 defer func() { _ = fm.Close() }()
166 filePath5 := ":/tmp/foo5"
167 df, err := fm.GetDataFile(filePath5, entry.Size())
168 if err == nil && df != nil {
169 t.Error("err TestDataFile_All open")
170 }
171}
172
173func TestDataFile_Crc_Err(t *testing.T) {
174 fm := NewFileManager(FileIO, 1024, 0.5, 256*MB)

Callers

nothing calls this directly

Calls 5

CloseMethod · 0.95
GetDataFileMethod · 0.95
NewFileManagerFunction · 0.85
SizeMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected