MCPcopy
hub / github.com/podman-container-tools/podman / OutputToString

Method OutputToString

test/utils/utils.go:268–275  ·  view source on GitHub ↗

OutputToString formats session output to string

()

Source from the content-addressed store, hash-verified

266
267// OutputToString formats session output to string
268func (s *PodmanSession) OutputToString() string {
269 if s == nil || s.Out == nil || s.Out.Contents() == nil {
270 return ""
271 }
272
273 fields := strings.Fields(string(s.Out.Contents()))
274 return strings.Join(fields, " ")
275}
276
277// OutputToStringArray returns the output as a []string
278// where each array item is a line split by newline

Callers 15

GetContainerStatusMethod · 0.80
WaitContainerReadyMethod · 0.80
run_signal_test.goFile · 0.80
attach_test.goFile · 0.80
prune_test.goFile · 0.80
run_env_test.goFile · 0.80
import_test.goFile · 0.80
createAndTestSecretFunction · 0.80
testPodWithSecretFunction · 0.80
verifyPodPortsFunction · 0.80

Calls

no outgoing calls

Tested by 15

createAndTestSecretFunction · 0.64
testPodWithSecretFunction · 0.64
verifyPodPortsFunction · 0.64
InspectArtifactToJSONMethod · 0.64
CheckFileInContainerMethod · 0.64
RunLsContainerMethod · 0.64
RunLsContainerInPodMethod · 0.64
CleanupMethod · 0.64