(name, targetType, comment string, optional bool)
| 36 | } |
| 37 | |
| 38 | func NewCheck(name, targetType, comment string, optional bool) ks.Check { |
| 39 | return ks.Check{ |
| 40 | Name: name, |
| 41 | ID: machineFriendlyName(name), |
| 42 | TargetType: targetType, |
| 43 | Comment: comment, |
| 44 | Optional: optional, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func machineFriendlyName(in string) string { |
| 49 | in = strings.ToLower(in) |
no test coverage detected