MCPcopy Create free account
hub / github.com/containerd/nerdctl / Run

Method Run

mod/tigron/test/interfaces.go:131–131  ·  view source on GitHub ↗

Run does execute the command, and compare the output with the provided expectation. Passing nil for `Expected` will just run the command regardless of outcome. An empty `&Expected{}` is (of course) equivalent to &Expected{Exit: 0}, meaning the command is verified to be successful.

(expect *Expected)

Source from the content-addressed store, hash-verified

129 // An empty `&Expected{}` is (of course) equivalent to &Expected{Exit: 0}, meaning the command
130 // is verified to be successful.
131 Run(expect *Expected)
132 // Background allows starting a command in the background.
133 Background()
134 // Signal sends a signal to a backgrounded command.

Callers 15

EnsureMethod · 0.65
AnyhowMethod · 0.65
FailMethod · 0.65
CaptureMethod · 0.65
ErrMethod · 0.65
RunMethod · 0.65
TestMainFunction · 0.65
BackgroundMethod · 0.65
RunMethod · 0.65
TestTempFunction · 0.65
TestMainFunction · 0.65
SnapshotOpenFilesFunction · 0.65

Implementers 1

GenericCommandmod/tigron/test/command.go

Calls

no outgoing calls

Tested by 15

TestMainFunction · 0.52
TestTempFunction · 0.52
TestMainFunction · 0.52
TestZeroMapValuesFunction · 0.52
TestParseExtraHostsFunction · 0.52
TestParseFlagPFunction · 0.52
TestParseIPTableRulesFunction · 0.52
TestReadLogsFunction · 0.52
TestParseAddressFunction · 0.52
TestParseFluentdConfigFunction · 0.52