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

Function TestGetHintPath

hintfile_test.go:568–576  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

566}
567
568func TestGetHintPath(t *testing.T) {
569 dir := filepath.Join(t.TempDir(), "nutsdb")
570 fid := int64(123)
571 expected := filepath.Join(dir, "123.hint")
572 actual := getHintPath(fid, dir)
573 if actual != expected {
574 t.Errorf("Expected %s, got %s", expected, actual)
575 }
576}

Callers

nothing calls this directly

Calls 1

getHintPathFunction · 0.85

Tested by

no test coverage detected