MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / TestPrintlnRoleAccess

Function TestPrintlnRoleAccess

resources/access/access_test.go:16–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func 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
35func TestPrintlnAccessAPIs(t *testing.T) {
36 builder := &strings.Builder{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected