MCPcopy Create free account
hub / github.com/assetnote/hyoketsu / writeDLLMatchJSONL

Function writeDLLMatchJSONL

cmd/cmd_test.go:316–329  ·  view source on GitHub ↗

--- helpers ---

(t *testing.T, path string, entries []db.DLLMatch)

Source from the content-addressed store, hash-verified

314// --- helpers ---
315
316func writeDLLMatchJSONL(t *testing.T, path string, entries []db.DLLMatch) {
317 t.Helper()
318 f, err := os.Create(path)
319 if err != nil {
320 t.Fatal(err)
321 }
322 defer f.Close()
323 enc := json.NewEncoder(f)
324 for _, e := range entries {
325 if err := enc.Encode(e); err != nil {
326 t.Fatal(err)
327 }
328 }
329}

Callers 1

TestRunNugetImportFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected