exportWithMockFS runs Export after temporarily replacing StaticFiles. Since StaticFiles() returns an empty FS in non-embed builds, we use ExportWithFS which accepts an explicit FS for testing.
(t *testing.T, cfg ExportConfig)
| 42 | // Since StaticFiles() returns an empty FS in non-embed builds, we |
| 43 | // use ExportWithFS which accepts an explicit FS for testing. |
| 44 | func exportWithMockFS(t *testing.T, cfg ExportConfig) error { |
| 45 | t.Helper() |
| 46 | return ExportWithFS(cfg, mockStaticFS()) |
| 47 | } |
| 48 | |
| 49 | func TestExport_OutputStructure(t *testing.T) { |
| 50 | taskDir := createTestTaskDir(t) |
no test coverage detected