// readResults reads the result channel.

readResults reads the result channel.
// readResults reads the result channel .
func readResults(rs <-chan *result) ([]*GeneratedTest, error) {
	var gts []*GeneratedTest
	for r := range rs {
		if r.err != nil {
			return nil, r.err
		}
		if r.gt != nil {
			gts = append(gts, r.gt)
		}
	}
	return gts, nil
}
func readResults ( rs <- chan * result ) ( [ ] * GeneratedTest , error ) { var gts [ ] * GeneratedTest for r := range rs { if r . err != nil { return nil , r . err } if r . gt != nil { gts = append ( gts , r . gt ) } } return gts , nil }
readResults reads the result channel.
readResults reads the result channel .