MCPcopy Create free account
hub / github.com/commander-cli/commander / Test_ValidateStderrShouldFail

Function Test_ValidateStderrShouldFail

pkg/runtime/validator_test.go:40–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func 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
54func Test_ValidateExitCodeShouldFail(t *testing.T) {
55 test := getExampleTest()

Callers

nothing calls this directly

Calls 2

getExampleTestFunction · 0.85
ValidateFunction · 0.85

Tested by

no test coverage detected