MCPcopy
hub / github.com/moonD4rk/HackBrowserData / TestWrite_NoData

Function TestWrite_NoData

output/output_test.go:284–292  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

282}
283
284func TestWrite_NoData(t *testing.T) {
285 dir := t.TempDir()
286 out, err := NewWriter(dir, "csv")
287 require.NoError(t, err)
288 require.NoError(t, out.Write())
289
290 entries, _ := os.ReadDir(dir)
291 assert.Empty(t, entries, "no files should be created when no data added")
292}
293
294// --- helpers ---
295

Callers

nothing calls this directly

Calls 3

WriteMethod · 0.95
NewWriterFunction · 0.85
TempDirMethod · 0.80

Tested by

no test coverage detected