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

Function TestStreamJSONLFileEmpty

cmd/cmd_test.go:156–171  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

154}
155
156func TestStreamJSONLFileEmpty(t *testing.T) {
157 dir := t.TempDir()
158 path := filepath.Join(dir, "empty.jsonl")
159 os.WriteFile(path, []byte{}, 0644)
160
161 var got []db.DLLMatch
162 err := streamJSONLFile(path, func(e db.DLLMatch) {
163 got = append(got, e)
164 })
165 if err != nil {
166 t.Fatal(err)
167 }
168 if len(got) != 0 {
169 t.Errorf("got %d entries for empty file, want 0", len(got))
170 }
171}
172
173// --- 5. runNugetImport with real SQLite ---
174

Callers

nothing calls this directly

Calls 1

streamJSONLFileFunction · 0.85

Tested by

no test coverage detected