func (cs *CodeSetResultSet) addTestToGroupFound(group Group, groupFound *Group) {
	for key, codeSet := range *cs {
		if codeSet.CodeSet.Equals(groupFound.Included) {
			thisCs := *cs
			thisCs[key] = CodeSetResult{
				CodeSet: groupFound.Included,
				TestIds: append(codeSet.TestIds, group.TestId),
			}
			return
		}
	}
	// not found codeSet doesnt have this Group
	*cs = append(*cs, CodeSetResult{
		CodeSet: groupFound.Included,
		TestIds: []TestId{group.TestId},
	})
}
// addTestToGroupFound finds a permission set for a test and adds it to the test id list
// if doesnt find adds a new permission set
addTestToGroupFound finds a permission set for a test and adds it to the test id list
if doesnt find adds a new permission set
// addTestToGroupFound finds a permission set for a test and adds it to the test id list // if doesnt find adds a new permission set
func (cs *CodeSetResultSet) addTestToGroupFound(group Group, groupFound *Group) {
	for key, codeSet := range *cs {
		if codeSet.CodeSet.Equals(groupFound.Included) {
			thisCs := *cs
			thisCs[key] = CodeSetResult{
				CodeSet: groupFound.Included,
				TestIds: append(codeSet.TestIds, group.TestId),
			}
			return
		}
	}
	*cs = append(*cs, CodeSetResult{
		CodeSet: groupFound.Included,
		TestIds: []TestId{group.TestId},
	})
}
func ( cs * CodeSetResultSet ) addTestToGroupFound ( group Group , groupFound * Group ) { for key , codeSet := range * cs { if codeSet . CodeSet . Equals ( groupFound . Included ) { thisCs := * cs thisCs [ key ] = CodeSetResult { CodeSet : groupFound . Included , TestIds : append ( codeSet . TestIds , group . TestId ) , } return } } * cs = append ( * cs , CodeSetResult { CodeSet : groupFound . Included , TestIds : [ ] TestId { group . TestId } , } ) }
addTestToGroupFound finds a permission set for a test and adds it to the test id list
if doesnt find adds a new permission set
addTestToGroupFound finds a permission set for a test and adds it to the test id list if doesnt find adds a new permission set
// not found codeSet doesnt have this Group