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

Method Setenv

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

Setenv allows to override a specific env variable directly for a specific command instead of test-wide

(key, value string)

Source from the content-addressed store, hash-verified

117 WithTimeout(timeout time.Duration)
118 // Setenv allows to override a specific env variable directly for a specific command instead of test-wide
119 Setenv(key, value string)
120 // WithFeeder allows passing a reader to be fed to the command stdin.
121 WithFeeder(fun func() io.Reader)
122 // Feed allows passing a reader to be fed to the command stdin.

Callers 11

TestEnvBlacklistFunction · 0.65
TestEnvWhiteListFunction · 0.65
TestEnvAddFunction · 0.65
GenerateCosignKeyPairFunction · 0.65
ParentMainFunction · 0.65
CmdMethod · 0.65
TestBuilderFunction · 0.65

Implementers 1

GenericCommandmod/tigron/test/command.go

Calls

no outgoing calls

Tested by 9

TestEnvBlacklistFunction · 0.52
TestEnvWhiteListFunction · 0.52
TestEnvAddFunction · 0.52
CmdMethod · 0.52
TestBuilderFunction · 0.52