(t *testing.T)
| 597 | } |
| 598 | |
| 599 | func TestExport_WithoutEmbeddedAssets(t *testing.T) { |
| 600 | // Export() uses StaticFiles() which returns an empty FS in test builds. |
| 601 | taskDir := createTestTaskDir(t) |
| 602 | outDir := filepath.Join(t.TempDir(), "export") |
| 603 | |
| 604 | err := Export(ExportConfig{ |
| 605 | OutputDir: outDir, |
| 606 | ScanDir: taskDir, |
| 607 | BasePath: "/", |
| 608 | Version: "test", |
| 609 | }) |
| 610 | |
| 611 | if err == nil { |
| 612 | t.Fatal("expected error from Export() without embedded assets") |
| 613 | } |
| 614 | if !strings.Contains(err.Error(), "no embedded web assets") { |
| 615 | t.Errorf("expected 'no embedded web assets' error, got: %v", err) |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | func TestWriteJSONFile_MarshalError(t *testing.T) { |
| 620 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected