From a2e32d0bf1bafb8f8a15f8c312c16ad70f7db347 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 9 Apr 2024 18:01:49 -0600 Subject: [PATCH] update test files --- internal/e2e/e2e_rank_test.go | 3 ++- testdata/backcompat/new_v16.00000.zoekt | Bin 1271 -> 0 bytes 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 testdata/backcompat/new_v16.00000.zoekt diff --git a/internal/e2e/e2e_rank_test.go b/internal/e2e/e2e_rank_test.go index 547399bab..2fa0016e5 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/testdata/backcompat/new_v16.00000.zoekt b/testdata/backcompat/new_v16.00000.zoekt deleted file mode 100644 index cd69358f69bb3836a4b70fcb271213696b2f7aa9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1271 zcmZWoNpI6Y6n;(<Bf`iH zB(s-qRx)1jI0?mAurguOl}*8WA{JXb$!XiceQP;*vqDU!@PFOTD7c| z4y&+jkGt|gt6HluI}Q_3VRbGC2_J|}K4SI}W43u*VVyt>$7wNitgYkP>=^UL9}L;R zJ`q!4Pn-4hrxhfjlaXs7m(H$;m@N~}tFTtmZHiHl2EhQ;!1vu4UE9JRc|6YCHgE_2 zBkQgd8zCR~LdMhPO}<|ZWZxZ}hiP&-ROzYiZjEAWE9O9HKH^d9(C-Ew&imYpu=IA| zccVCv7(8R@m`N0;$*reZnWnkCq~5k^+Uo7FW7oJD0^vD$iN&zFGi|L z>@=P4%f#cO#!@Ohab*u>T4+k1%RI;Vr@Ai1zK46D5~NE;o);1Mq8x}7%hYr%FLG<>76J4MSh!2Q`*{(WBn>-puI9CbjdX%0f z#e73HHyb8WZ1ww*h!y#m$az}1IW2r4LG=|oN18IPE0)YB*{{T2a?*{f?h0oZCBCx% zj*4FNvYVr*pJY5wX{-m%`JN#MX9%r82SeEr1w{(A<^_STrt~qgIMZwat5=2R4pU1S Hb9?^)rxYp=