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

Function Test_ValidateStdoutShouldFail

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

Source from the content-addressed store, hash-verified

24}
25
26func 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
40func Test_ValidateStderrShouldFail(t *testing.T) {
41 test := getExampleTest()

Callers

nothing calls this directly

Calls 2

getExampleTestFunction · 0.85
ValidateFunction · 0.85

Tested by

no test coverage detected