56 matches across 2 files for func main lang:Go lang:Go path:regression_test.go lang:Go lang:Go lang:Go
snippet_mode: grep · sorted by relevance
processor/workers_regression_test.go GO 11 matches · showing 5 view file →
7// https://github.com/boyter/scc/issues/72
8// Turns out the above is due to BOM being present for that file
9func TestCountStatsIssue72(t *testing.T) {
10 ProcessConstants()
11 fileJob := FileJob{
· · ·
52}
53
54func TestCountStatsPr76(t *testing.T) {
55 ProcessConstants()
56 fileJob := FileJob{
· · ·
58 }
59
60 fileJob.SetContent(`package main
61var MyString = ` + "`\\`" + `
62// Comment`)
· · ·
82
83// https://github.com/boyter/scc/issues/62
84func TestCountStatsIssue62(t *testing.T) {
85 ProcessConstants()
86 fileJob := FileJob{
· · ·
123}
124
125func TestCountStatsIssue123(t *testing.T) {
126 ProcessConstants()
127 fileJob := FileJob{
+ 6 more matches in this file
regression_test.go GO 45 matches · showing 5 view file →
1// SPDX-License-Identifier: MIT
2
3package main
4
5import (
· · ·
18// The tests in this file guard against regressions to pre-existing behaviour
19// introduced by the config-dotfile work (spec/01-config-dotfile). They focus on
20// functionality that existed before the feature and could have been silently
21// changed by the registerFlags refactor, the shared @file tokenizer and the
22// config discovery/merge pipeline - cases the feature's own tests do not cover.
· · ·
31// union must keep the defaults as a non-removable safety net. .svn is the canary:
32// nothing else skips it, so if preservation breaks it reappears in the output.
33func TestRegressionExcludeDirPreservesDefaults(t *testing.T) {
34 dir := t.TempDir()
35 layout := map[string]string{".svn": "x.go", "vendor": "y.go", "keep": "z.go"}
· · ·
62// lockfile defaults. package-lock.json is the canary - before the fix pflag's
63// replace-on-first-Set would have let it through.
64func TestRegressionExcludeFilePreservesDefaults(t *testing.T) {
65 dir := t.TempDir()
66 files := map[string]string{
· · ·
67 "main.go": "package main\n",
68 "package-lock.json": "{\"a\":1}\n",
69 "myignore.txt": "hello\n",
+ 40 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.