mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-11 03:27:20 +02:00
ci: restrict test generator to .go files
The integration test generator scanned all files under integration/ with ripgrep, matching func Test* patterns in README.md code examples (TestMyScenario, TestRouteAdvertisementBasic). Add --type go to limit the search to Go source files.
This commit is contained in:
@@ -66,6 +66,7 @@ func findTests() []string {
|
||||
}
|
||||
|
||||
args := []string{
|
||||
"--type", "go",
|
||||
"--regexp", "func (Test.+)\\(.*",
|
||||
"../../integration/",
|
||||
"--replace", "$1",
|
||||
|
||||
Reference in New Issue
Block a user