(t *testing.T)
| 154 | } |
| 155 | |
| 156 | func 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 |
nothing calls this directly
no test coverage detected