(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func Test_ValidateStderrShouldFail(t *testing.T) { |
| 41 | test := getExampleTest() |
| 42 | test.Expected.Stdout = ExpectedOut{} |
| 43 | test.Result = CommandResult{ |
| 44 | Stderr: "is not in message", |
| 45 | ExitCode: 0, |
| 46 | } |
| 47 | |
| 48 | got := Validate(test) |
| 49 | |
| 50 | assert.False(t, got.ValidationResult.Success) |
| 51 | assert.Equal(t, "Stderr", got.FailedProperty) |
| 52 | } |
| 53 | |
| 54 | func Test_ValidateExitCodeShouldFail(t *testing.T) { |
| 55 | test := getExampleTest() |
nothing calls this directly
no test coverage detected