MCPcopy
hub / github.com/tsuru/tsuru / String

Method String

integration/cmd.go:209–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func (r *Result) String() string {
210 var args []string
211 if r.Cmd != nil {
212 args = r.Cmd.Args
213 }
214 var input string
215 if r.Command != nil {
216 input = r.Command.Input
217 }
218 return fmt.Sprintf(`--- Command %v ---
219ExitCode: %d
220Error: %v
221Timeout: %v
222Stdin: %q
223Stdout: %q
224Stderr: %q
225%v
226----------
227`, args,
228 r.ExitCode,
229 r.Error,
230 r.Timeout,
231 input,
232 r.Stdout.String(),
233 r.Stderr.String(),
234 r.Env)
235}
236
237func (r *Result) Compare(expected Expected) error {
238 if expected.Timeout && !r.Timeout {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected