MCPcopy Create free account
hub / github.com/github/gh-aw / TestImportCacheEmptyCache

Function TestImportCacheEmptyCache

pkg/parser/import_cache_test.go:116–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

114}
115
116func TestImportCacheEmptyCache(t *testing.T) {
117 tempDir := t.TempDir()
118
119 cache := NewImportCache(tempDir)
120
121 // Try to get from empty cache - should return not found
122 _, found := cache.Get("owner", "repo", "test.md", "nonexistent-sha")
123 assert.False(t, found, "Get should return cache miss for empty cache")
124}
125
126func TestSanitizePath(t *testing.T) {
127 tests := []struct {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
NewImportCacheFunction · 0.85

Tested by

no test coverage detected