28 matches across 1 files for error lang:Go path:processor/locomo_test.go lang:Go
snippet_mode: auto · sorted by relevance
processor/locomo_test.go GO 28 matches · showing 5 view file →
11 got := LocomoComplexityDensity(10, 0)
12 if got != 0 {
13 t.Errorf("Expected 0 for zero code lines, got %f", got)
14 }
15}
· · ·
18 got := LocomoComplexityDensity(30, 100)
19 if math.Abs(got-0.3) > 0.001 {
20 t.Errorf("Expected 0.3, got %f", got)
21 }
22}
· · ·
26 got := LocomoComplexityFactor(0.3, 5)
27 if got < 3.7 || got > 3.8 {
28 t.Errorf("Expected ~3.74, got %f", got)
29 }
30}
· · ·
34 got := LocomoComplexityFactor(0.05, 5)
35 if got < 2.0 || got > 2.2 {
36 t.Errorf("Expected ~2.12, got %f", got)
37 }
38}
· · ·
42 got := LocomoIterationFactor(0.3, 1.5, 2)
43 if got < 2.5 || got > 2.7 {
44 t.Errorf("Expected ~2.60, got %f", got)
45 }
46}
+ 23 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.