(t *testing.T)
| 204 | } |
| 205 | |
| 206 | func TestDevRestore_CacheMiss(t *testing.T) { |
| 207 | cache := newTestDevArtifactCache(t) |
| 208 | destDir := filepath.Join(t.TempDir(), "dest") |
| 209 | |
| 210 | fromPath, err := cache.Restore("nonexistent@1.0", "somehash", destDir) |
| 211 | if err != nil { |
| 212 | t.Fatalf("unexpected error on cache miss: %v", err) |
| 213 | } |
| 214 | if fromPath != "" { |
| 215 | t.Errorf("expected empty path on cache miss, got %s", fromPath) |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func TestDevRestore_TamperedMetaFails(t *testing.T) { |
| 220 | cache := newTestDevArtifactCache(t) |
nothing calls this directly
no test coverage detected