(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestActionCacheLoadNonExistent(t *testing.T) { |
| 81 | // Create temporary directory for testing |
| 82 | tmpDir := testutil.TempDir(t, "test-*") |
| 83 | |
| 84 | cache := NewActionCache(tmpDir) |
| 85 | |
| 86 | // Try to load non-existent cache - should not error |
| 87 | err := cache.Load() |
| 88 | if err != nil { |
| 89 | t.Errorf("Loading non-existent cache should not error, got: %v", err) |
| 90 | } |
| 91 | |
| 92 | // Cache should be empty |
| 93 | if len(cache.Entries) != 0 { |
| 94 | t.Errorf("Expected empty cache, got %d entries", len(cache.Entries)) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func TestActionCacheGetCachePath(t *testing.T) { |
| 99 | tmpDir := testutil.TempDir(t, "test-*") |
nothing calls this directly
no test coverage detected