import "go.chromium.org/chromiumos/infra/go/internal/cmd"
Copyright 2019 The Chromium OS Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
type CommandRunner interface { RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error }
type FakeCommandRunner struct { Stdout string Stderr string ExpectedCmd []string ExpectedDir string FailCommand bool FailError string }
func (c FakeCommandRunner) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error
type FakeCommandRunnerMulti struct { CommandRunners []FakeCommandRunner // contains filtered or unexported fields }
func (c *FakeCommandRunnerMulti) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error
type RealCommandRunner struct{}
func (c RealCommandRunner) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error
Package cmd imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-26. Refresh now. Tools for package owners.