| 11 | } |
| 12 | |
| 13 | type Step interface { |
| 14 | // Useful when wanting to do parameter checking, for example |
| 15 | // if a parameter length is known to be required less than 80 characters, |
| 16 | // do this here so we don't find out later on when we run the step |
| 17 | // when possible, try to avoid making external calls, this should be fast and simple |
| 18 | Prevalidate() error |
| 19 | |
| 20 | // Primary step where test logic is executed |
| 21 | // Returning an error will cause the test to fail |
| 22 | Run() error |
| 23 | |
| 24 | // Require for background steps |
| 25 | Stop() error |
| 26 | } |
| 27 | |
| 28 | type StepOptions struct { |
| 29 | ExpectError bool |
no outgoing calls
no test coverage detected