func (list checkableList) check(env env.Env) []*compliance.Report {
	var (
		reports []*compliance.Report
	)

LOOP:
	for _, c := range list {
		for i, report := range c.check(env) {
			if len(reports) >= env.MaxEventsPerRun() {
				// generate an error report to notify that the results were
				// truncated
				reports = append(reports, &compliance.Report{
					Passed: false,
					Error:  ErrTruncatedResults,
					Data: map[string]interface{}{
						"truncated": len(reports) - (i + 1),
					},
				})
				break LOOP
			}
			reports = append(reports, report)
		}
	}

	return reports
}
// check implements checkable interface for checkableList
// note that this implements AND for all checkables in a check:
// failure or error from a single checkable fails the check, all checkables must
// return Passed in order for the check to be successful.
check implements checkable interface for checkableList
note that this implements AND for all checkables in a check:
failure or error from a single checkable fails the check, all checkables must
return Passed in order for the check to be successful.
// check implements checkable interface for checkableList // note that this implements AND for all checkables in a check : // failure or error from a single checkable fails the check all checkables must // return Passed in order for the check to be successful .
func (list checkableList) check(env env.Env) []*compliance.Report {
	var (
		reports []*compliance.Report
	)
LOOP:
	for _, c := range list {
		for i, report := range c.check(env) {
			if len(reports) >= env.MaxEventsPerRun() {
				reports = append(reports, &compliance.Report{
					Passed: false,
					Error:  ErrTruncatedResults,
					Data: map[string]interface{}{
						"truncated": len(reports) - (i + 1),
					},
				})
				break LOOP
			}
			reports = append(reports, report)
		}
	}
	return reports
}
func ( list checkableList ) check ( env env . Env ) [ ] * compliance . Report { var ( reports [ ] * compliance . Report ) LOOP : for _ , c := range list { for i , report := range c . check ( env ) { if len ( reports ) >= env . MaxEventsPerRun ( ) { reports = append ( reports , & compliance . Report { Passed : false , Error : ErrTruncatedResults , Data : map [ string ] interface { } { " " : len ( reports ) - ( i + 1 ) , } , } ) break LOOP } reports = append ( reports , report ) } } return reports }
check implements checkable interface for checkableList
note that this implements AND for all checkables in a check:
failure or error from a single checkable fails the check, all checkables must
return Passed in order for the check to be successful.
check implements checkable interface for checkableList note that this implements AND for all checkables in a check : failure or error from a single checkable fails the check all checkables must return Passed in order for the check to be successful .
// generate an error report to notify that the results were // truncated