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 83bde56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
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
10 changes: 5 additions & 5 deletions internal/e2e/testdata/bytes_buffer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ github.com/golang/go/src/cmd/internal/edit/edit.go
41:func NewBuffer(data []byte) *Buffer {
hidden 13 more line matches

github.com/golang/go/src/hash/crc32/crc32_ppc64le.s
122: SLD $2,R8 // convert index-> bytes
59: MOVWZ 0(R5),R8 // 0-3 bytes of p ?Endian?
60: MOVWZ 4(R5),R9 // 4-7 bytes of p
hidden 35 more line matches
github.com/golang/go/misc/wasm/wasm_exec.js
497: const bytes = encoder.encode(str + "\0");
48: read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
192: return new Uint8Array(this._inst.exports.mem.buffer, array, len);
hidden 10 more line matches

github.com/golang/go/src/fmt/print.go
101:type buffer []byte
Expand Down
Binary file removed testdata/backcompat/new_v16.00000.zoekt
Binary file not shown.

0 comments on commit 83bde56

Please sign in to comment.