INNER CODE UNIT · Go
TestUnmarshalRoles
movio/bramble · auth_test.go:13
func TestUnmarshalRoles(t *testing.T) {
var roles = map[string]OperationPermissions{
"nested_role": {
AllowedRootQueryFields: AllowedFields{
AllowedSubfields: map[string]AllowedFields{
"one": {
AllowAll: true,
},
"two": {
AllowedSubfields: map[string]AllowedFields{
"three": {
AllowAll: true,
},
},
},
},
},
AllowedRootMutationFields: AllowedFields{