func role(rules []rbacv1.PolicyRule, labels map[string]string, annotations map[string]string) *rbacv1.ClusterRole { … } func rules(resources ...string) []rbacv1.PolicyRule { … } type ss … func TestComputeReconciledRoleRules(t *testing.T) { … } func aggregatedRole(aggregationRule *rbacv1.AggregationRule) *rbacv1.ClusterRole { … } func aggregationrule(selectors []map[string]string) *rbacv1.AggregationRule { … } func TestComputeReconciledRoleAggregationRules(t *testing.T) { … }