MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / TestDataFile_Close

Function TestDataFile_Close

engine/data/data_file_test.go:41–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestDataFile_Close(t *testing.T) {
42 dataFile, err := OpenDataFile(os.TempDir(), 1111111, DefaultFileSize, fileio.FileIOType)
43 assert.Nil(t, err)
44 assert.NotNil(t, dataFile)
45
46 err = dataFile.Close()
47 assert.Nil(t, err)
48}
49
50func TestDataFile_Sync(t *testing.T) {
51 dataFile, err := OpenDataFile(os.TempDir(), 2222222, DefaultFileSize, fileio.FileIOType)

Callers

nothing calls this directly

Calls 2

OpenDataFileFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected