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

Function TestActionCacheGetCachePath

pkg/workflow/action_cache_test.go:98–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestActionCacheGetCachePath(t *testing.T) {
99 tmpDir := testutil.TempDir(t, "test-*")
100 cache := NewActionCache(tmpDir)
101
102 expectedPath := filepath.Join(tmpDir, ".github", "aw", CacheFileName)
103 if cache.GetCachePath() != expectedPath {
104 t.Errorf("Expected cache path '%s', got '%s'", expectedPath, cache.GetCachePath())
105 }
106}
107
108func TestActionCacheTrailingNewline(t *testing.T) {
109 // Create temporary directory for testing

Callers

nothing calls this directly

Calls 4

GetCachePathMethod · 0.95
TempDirFunction · 0.92
NewActionCacheFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected