fix
This commit is contained in:
1 parent
645f923175
commit
2cf2cebf5c
20 files changed
+481
-51
No files matched your search
@@ -41,3 +41,16 @@ func TestProbeBeatsLifecycleFlags(t *testing.T) {
|
||||
t.Fatalf("got %s", got.Category)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAIToolConfigPathsAreProbes(t *testing.T) {
|
||||
for _, p := range []string{"/.cursorrules", "/.codex/auth.json", "/backup/.claude/credentials.json", "/.windsurfrules", "/.vscode/launch.json", "/.idea/WebServers.xml", "/x/.github/copilot-instructions.md", "/CLAUDE.md", "/mcp.json", "/.clinerules"} {
|
||||
if !IsProbePath(p) {
|
||||
t.Errorf("%s should be a probe", p)
|
||||
}
|
||||
}
|
||||
for _, p := range []string{"/mcp", "/api/agents", "/api/sessions/{id}", "/api/continue"} {
|
||||
if IsProbePath(p) {
|
||||
t.Errorf("%s must not be a probe", p)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user