func ValidateSuite(suite *Suite) error {
	var errs []error
	behaviorsByID := make(map[string]bool)
	for _, b := range suite.Behaviors {
		if _, ok := behaviorsByID[b.ID]; ok {
			errs = append(errs, fmt.Errorf("Duplicate behavior ID: %s", b.ID))
		}
		if !strings.HasPrefix(b.ID, suite.Suite) {
			errs = append(errs, fmt.Errorf("Invalid behavior ID: %s, must have suite name as prefix: %s", b.ID, suite.Suite))
		}
		behaviorsByID[b.ID] = true
	}
	return utilerrors.NewAggregate(errs)
}
// ValidateSuite validates that the given suite has no duplicate behavior IDs
ValidateSuite validates that the given suite has no duplicate behavior IDs
// ValidateSuite validates that the given suite has no duplicate behavior IDs
func ValidateSuite(suite *Suite) error {
	var errs []error
	behaviorsByID := make(map[string]bool)
	for _, b := range suite.Behaviors {
		if _, ok := behaviorsByID[b.ID]; ok {
			errs = append(errs, fmt.Errorf("Duplicate behavior ID: %s", b.ID))
		}
		if !strings.HasPrefix(b.ID, suite.Suite) {
			errs = append(errs, fmt.Errorf("Invalid behavior ID: %s, must have suite name as prefix: %s", b.ID, suite.Suite))
		}
		behaviorsByID[b.ID] = true
	}
	return utilerrors.NewAggregate(errs)
}
func ValidateSuite ( suite * Suite ) error { var errs [ ] error behaviorsByID := make ( map [ string ] bool ) for _ , b := range suite . Behaviors { if _ , ok := behaviorsByID [ b . ID ] ; ok { errs = append ( errs , fmt . Errorf ( " " , b . ID ) ) } if ! strings . HasPrefix ( b . ID , suite . Suite ) { errs = append ( errs , fmt . Errorf ( " " , b . ID , suite . Suite ) ) } behaviorsByID [ b . ID ] = true } return utilerrors . NewAggregate ( errs ) }
ValidateSuite validates that the given suite has no duplicate behavior IDs
ValidateSuite validates that the given suite has no duplicate behavior IDs