MCPcopy Create free account
hub / github.com/github/gh-aw / TestDetectNetworkFromRepo

Function TestDetectNetworkFromRepo

pkg/cli/interactive_test.go:606–618  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

604}
605
606func 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
620func TestGeneratePermissionsConfig_SafeOutputPermissions(t *testing.T) {
621 tests := []struct {

Callers

nothing calls this directly

Calls 2

detectNetworkFromRepoFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected