(t *testing.T)
| 604 | } |
| 605 | |
| 606 | func TestDetectNetworkFromRepo(t *testing.T) { |
| 607 | // detectNetworkFromRepo inspects the current directory; we exercise it |
| 608 | // without relying on the actual repo contents – we just verify it returns |
| 609 | // a list (possibly empty) without panicking. |
| 610 | result := detectNetworkFromRepo() |
| 611 | // Result must be a (possibly empty) slice of strings |
| 612 | for _, b := range result { |
| 613 | if b == "" { |
| 614 | t.Error("detectNetworkFromRepo returned an empty bucket name") |
| 615 | } |
| 616 | } |
| 617 | t.Logf("Detected network buckets: %v", result) |
| 618 | } |
| 619 | |
| 620 | func TestGeneratePermissionsConfig_SafeOutputPermissions(t *testing.T) { |
| 621 | tests := []struct { |
nothing calls this directly
no test coverage detected