MCPcopy
hub / github.com/larksuite/cli / AssertExitCode

Method AssertExitCode

tests/cli_e2e/core.go:441–444  ·  view source on GitHub ↗

AssertExitCode asserts the exit code.

(t *testing.T, code int)

Source from the content-addressed store, hash-verified

439
440// AssertExitCode asserts the exit code.
441func (r *Result) AssertExitCode(t *testing.T, code int) {
442 t.Helper()
443 assert.Equal(t, code, r.ExitCode, "stdout:\n%s\nstderr:\n%s", r.Stdout, r.Stderr)
444}
445
446// AssertStdoutStatus asserts stdout JSON status using either {"ok": ...} or {"code": ...}.
447// This intentionally keeps one shared assertion entrypoint for CLI E2E call sites,

Calls

no outgoing calls