Skip to content

Commit

Permalink
update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Apr 10, 2024
1 parent 2817965 commit a2e32d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/e2e/e2e_rank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func assertGolden(t *testing.T, name string, got []byte) {

wantPath := filepath.Join("testdata", name+".txt")
if *update {
fmt.Printf("writing file: %s", wantPath)
if err := os.WriteFile(wantPath, got, 0o600); err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -311,7 +312,7 @@ func marshalMatches(w io.Writer, rq rankingQuery, q query.Q, files []zoekt.FileM
chunks, hidden := splitAtIndex(f.ChunkMatches, chunkMatchesPerFile)

for _, m := range chunks {
_, _ = fmt.Fprintf(w, "%d:%s%s\n", m.ContentStart.LineNumber, string(m.Content), addTabIfNonEmpty(m.DebugScore))
_, _ = fmt.Fprintf(w, "%d:%s%s", m.ContentStart.LineNumber, string(m.Content), addTabIfNonEmpty(m.DebugScore))
}

if len(hidden) > 0 {
Expand Down
Binary file removed testdata/backcompat/new_v16.00000.zoekt
Binary file not shown.

0 comments on commit a2e32d0

Please sign in to comment.