MCPcopy
hub / github.com/rook/rook / Run

Method Run

pkg/operator/ceph/controller/network_test.go:51–54  ·  view source on GitHub ↗
(ctx context.Context, timeout time.Duration)

Source from the content-addressed store, hash-verified

49}
50
51func (m *mockCmdReporter) Run(ctx context.Context, timeout time.Duration) (stdout, stderr string, retcode int, retErr error) {
52 args := m.Called(ctx, timeout)
53 return args.String(0), args.String(1), args.Int(2), args.Error(3)
54}
55
56// returns a newCmdReporter function that returns the given mockCmdReporter and error
57func mockNewCmdReporter(m *mockCmdReporter, err error) func(clientset kubernetes.Interface, ownerInfo *k8sutil.OwnerInfo, appName string, jobName string, jobNamespace string, cmd []string, args []string, rookImage string, runImage string, imagePullPolicy v1.PullPolicy, resources cephv1.ResourceSpec) (cmdreporter.CmdReporterInterface, error) {

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected