fix: forge browsing, verified crawlers, ban feedback loop, coverage metrics and slow-attacker policy (1.6.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
393a31cebe
commit
54b9ae65cd
23 files changed
+802
-100
No files matched your search
@@ -0,0 +1,24 @@
|
||||
package intel
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.lucasrguerra.dev.br/ciberfauna/urutau/internal/core"
|
||||
)
|
||||
|
||||
func TestForgeBrowseHasNoFamily(t *testing.T) {
|
||||
for _, p := range []string{"/ciberfauna/sabia/src/commit/0123abcd/.gitignore", "/lucasrguerra/LambdaMail/src/commit/0123abcd/.env.example",
|
||||
"/ciberfauna/guara/blame/commit/0123abcd/.gitignore"} {
|
||||
if f := Family(p, core.OK, 200, false); f != "" {
|
||||
t.Errorf("%s: %q", p, f)
|
||||
}
|
||||
if f := PathFamily(p); f != "" {
|
||||
t.Errorf("PathFamily %s: %q", p, f)
|
||||
}
|
||||
}
|
||||
for p, want := range map[string]string{"/.env": FamEnvCreds, "/.git/config": FamVCS, "/app/.env": FamEnvCreds} {
|
||||
if f := PathFamily(p); f != want {
|
||||
t.Errorf("%s: %q want %q", p, f, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user