(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func TestPrintlnRoleAccess(t *testing.T) { |
| 17 | system, has := access.GetPermit("system") |
| 18 | if has { |
| 19 | keys := system.AccessKeys() |
| 20 | sort.Strings(keys) |
| 21 | for _, k := range keys { |
| 22 | fmt.Printf("- %s\n", k) |
| 23 | } |
| 24 | } |
| 25 | team, has := access.GetPermit("team") |
| 26 | if has { |
| 27 | keys := team.AccessKeys() |
| 28 | sort.Strings(keys) |
| 29 | for _, k := range keys { |
| 30 | fmt.Printf("- %s\n", k) |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestPrintlnAccessAPIs(t *testing.T) { |
| 36 | builder := &strings.Builder{} |
nothing calls this directly
no outgoing calls
no test coverage detected