39 matches across 1 files for func main lang:Go lang:Go lang:Go lang:Go lang:Go path:processor/workers_cognitive_test.go
snippet_mode: grep · sorted by relevance
processor/workers_cognitive_test.go GO 39 matches · showing 5 view file →
8// Cognitive global enabled and returns the resulting FileJob so callers can
9// assert on both Complexity and Cognitive.
10func countCognitive(t *testing.T, language, content string) FileJob {
11 t.Helper()
12 ProcessConstants()
· · ·
21// on, so callers can assert on the CognitiveLine array as well as the whole-file
22// tally.
23func countCognitiveLines(t *testing.T, language, content string) FileJob {
24 t.Helper()
25 ProcessConstants()
· · ·
31}
32
33func sumInt64(xs []int64) int64 {
34 var total int64
35 for _, x := range xs {
· · ·
41// The per-line array must total to the whole-file Cognitive value, for flat and
42// nested files alike.
43func TestCognitiveLineSumEqualsCognitive(t *testing.T) {
44 Cognitive = true
45 defer func() { Cognitive = false }()
· · ·
45 defer func() { Cognitive = false }()
46
47 cases := map[string]string{
+ 34 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.