(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func Test_ValidateExitCodeShouldFail(t *testing.T) { |
| 55 | test := getExampleTest() |
| 56 | test.Expected.Stdout = ExpectedOut{} |
| 57 | test.Expected.Stderr = ExpectedOut{} |
| 58 | test.Result = CommandResult{ |
| 59 | ExitCode: 1, |
| 60 | } |
| 61 | |
| 62 | got := Validate(test) |
| 63 | |
| 64 | assert.False(t, got.ValidationResult.Success) |
| 65 | assert.Equal(t, "ExitCode", got.FailedProperty) |
| 66 | } |
| 67 | |
| 68 | func Test_ValidateExpectedOut_Contains_Fails(t *testing.T) { |
| 69 | value := `test` |
nothing calls this directly
no test coverage detected