(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func Test_ValidateStdoutShouldFail(t *testing.T) { |
| 27 | test := getExampleTest() |
| 28 | test.Result = CommandResult{ |
| 29 | Stdout: "hello\nline2", |
| 30 | Stderr: "error", |
| 31 | ExitCode: 0, |
| 32 | } |
| 33 | |
| 34 | got := Validate(test) |
| 35 | |
| 36 | assert.False(t, got.ValidationResult.Success) |
| 37 | assert.Equal(t, "Stdout", got.FailedProperty) |
| 38 | } |
| 39 | |
| 40 | func Test_ValidateStderrShouldFail(t *testing.T) { |
| 41 | test := getExampleTest() |
nothing calls this directly
no test coverage detected