(t *testing.T)
| 566 | } |
| 567 | |
| 568 | func 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 | } |
nothing calls this directly
no test coverage detected