diff --git a/internal/e2e/e2e_rank_test.go b/internal/e2e/e2e_rank_test.go index 547399ba..2fa0016e 100644 --- a/internal/e2e/e2e_rank_test.go +++ b/internal/e2e/e2e_rank_test.go @@ -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) } @@ -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 { diff --git a/internal/e2e/testdata/bytes_buffer.txt b/internal/e2e/testdata/bytes_buffer.txt index dba9506a..21ee3ca1 100644 --- a/internal/e2e/testdata/bytes_buffer.txt +++ b/internal/e2e/testdata/bytes_buffer.txt @@ -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 diff --git a/testdata/backcompat/new_v16.00000.zoekt b/testdata/backcompat/new_v16.00000.zoekt deleted file mode 100644 index cd69358f..00000000 Binary files a/testdata/backcompat/new_v16.00000.zoekt and /dev/null differ