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

Function getExampleTest

pkg/runtime/validator_test.go:245–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245func getExampleTest() TestCase {
246 test := TestCase{
247 Expected: Expected{
248 Stdout: ExpectedOut{
249 Lines: map[int]string{1: "hello"},
250 LineCount: 1,
251 Exactly: "hello",
252 Contains: []string{"hello"},
253 NotContains: []string{"not-exist"},
254 },
255 Stderr: ExpectedOut{
256 Lines: map[int]string{1: "error"},
257 LineCount: 1,
258 Exactly: "error",
259 Contains: []string{"error"},
260 NotContains: []string{"not-exist"},
261 },
262 LineCount: 1,
263 },
264 Result: CommandResult{
265 Stdout: "hello",
266 Stderr: "error",
267 ExitCode: 0,
268 },
269 }
270 return test
271}

Callers 4

Test_ValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected