CustomCheck is meant to be a one-off checker with a user-provided function. Use this if none of the existing checkers match your use case, and it is not reusable/generic enough for use in other tests.
| 209 | // Use this if none of the existing checkers match your use case, and it is not |
| 210 | // reusable/generic enough for use in other tests. |
| 211 | type CustomCheck struct { |
| 212 | name string |
| 213 | checkFunc func(stdout, stderr string, err error) error |
| 214 | } |
| 215 | |
| 216 | func (c CustomCheck) Check(stdout, stderr string, err error) error { |
| 217 | return c.checkFunc(stdout, stderr, err) |
nothing calls this directly
no outgoing calls
no test coverage detected