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) } } }