63 matches across 1 files for error lang:Go path:config_test.go path:config_test.go lang:Go
snippet_mode: auto · sorted by relevance
config_test.go GO 63 matches · showing 5 view file →
22// runSCCDir runs the test binary as scc in the given working directory, with
23// optional extra environment entries (KEY=VALUE).
24func runSCCDir(t *testing.T, dir string, env []string, args ...string) (string, error) {
25 t.Helper()
26 bin, err := filepath.Abs(sccBinPath)
· · ·
132 got := parseConfigArgs(tc.content, tc.allowPositional)
133 if !slices.Equal(got, tc.want) {
134 t.Errorf("parseConfigArgs(%q, %v) = %q, want %q", tc.content, tc.allowPositional, got, tc.want)
135 }
136 })
· · ·
163 noConfig, findRoot, path := preScanConfig(tc.args)
164 if noConfig != tc.wantNoConfig || findRoot != tc.wantFindRoot || path != tc.wantPath {
165 t.Errorf("preScanConfig(%q) = (%v,%v,%q), want (%v,%v,%q)",
166 tc.args, noConfig, findRoot, path, tc.wantNoConfig, tc.wantFindRoot, tc.wantPath)
167 }
· · ·
175
176 if got := mergeSliceDefault(nil, defaults); !slices.Equal(got, defaults) {
177 t.Errorf("empty set should fall back to defaults, got %q", got)
178 }
179 if got := mergeSliceDefault([]string{"vendor"}, defaults); !slices.Equal(got, []string{".git", ".hg", ".svn", "vendor"}) {
· · ·
180 t.Errorf("defaults should be preserved, got %q", got)
181 }
182 if got := mergeSliceDefault([]string{"vendor", "dist"}, defaults); !slices.Equal(got, []string{".git", ".hg", ".svn", "vendor", "dist"}) {
+ 58 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.