(t *testing.T)
| 388 | } |
| 389 | |
| 390 | func TestRestore_CacheNotExists(t *testing.T) { |
| 391 | _, pkgCacheDir, _ := setupTestEnv(t) |
| 392 | rc := newRepoConfig(pkgCacheDir, true) |
| 393 | |
| 394 | restored, err := rc.Restore("x264@stable", "https://example.com/lib.tar.gz", "/tmp/unused", "abc123") |
| 395 | if err != nil { |
| 396 | t.Fatal(err) |
| 397 | } |
| 398 | if restored != "" { |
| 399 | t.Fatalf("expected empty path when cache missing, got %s", restored) |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | func TestRestore_EmptyChecksum(t *testing.T) { |
| 404 | _, pkgCacheDir, _ := setupTestEnv(t) |
nothing calls this directly
no test coverage detected