summaryrefslogtreecommitdiff
path: root/rag/rag_test.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-13 11:19:49 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-13 11:19:49 +0300
commit4cfe2fe37f3b048bc7fad2e197dd0d49ea4307ce (patch)
tree6ee619d7751df06421ad82fdbb091dae63007faa /rag/rag_test.go
parent648035b194dd1b8c658a6411b9f9fe19467ccc10 (diff)
Fix: linter complaintsHEADmaster
Diffstat (limited to 'rag/rag_test.go')
-rw-r--r--rag/rag_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/rag/rag_test.go b/rag/rag_test.go
index 4944007..a2204ee 100644
--- a/rag/rag_test.go
+++ b/rag/rag_test.go
@@ -30,7 +30,6 @@ func TestDetectPhrases(t *testing.T) {
expect: []string{},
},
}
-
for _, tt := range tests {
got := detectPhrases(tt.query)
if len(got) != len(tt.expect) {
@@ -73,7 +72,6 @@ func TestCountPhraseMatches(t *testing.T) {
expect: 2, // "she bears" and "bald prophet"
},
}
-
for _, tt := range tests {
got := countPhraseMatches(tt.text, tt.query)
if got != tt.expect {
@@ -119,7 +117,6 @@ func TestAreSlugsAdjacent(t *testing.T) {
expect: true, // sequential batches with same chunk index are adjacent
},
}
-
for _, tt := range tests {
got := areSlugsAdjacent(tt.slug1, tt.slug2)
if got != tt.expect {
@@ -141,7 +138,6 @@ func TestParseSlugIndices(t *testing.T) {
{"file_abc_def", 0, 0, false},
{"file_123_456_extra", 456, 0, false}, // regex matches last two numbers
}
-
for _, tt := range tests {
batch, chunk, ok := parseSlugIndices(tt.slug)
if ok != tt.wantOk {