cmd

package
v0.0.0-...-ff0388d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRunner

type CommandRunner interface {
	RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error
}

type FakeCommandRunner

type FakeCommandRunner struct {
	Stdout      string
	Stderr      string
	ExpectedCmd []string
	ExpectedDir string
	FailCommand bool
	FailError   string
}

func (FakeCommandRunner) RunCommand

func (c FakeCommandRunner) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error

type FakeCommandRunnerMulti

type FakeCommandRunnerMulti struct {
	CommandRunners []FakeCommandRunner
	// contains filtered or unexported fields
}

func (*FakeCommandRunnerMulti) RunCommand

func (c *FakeCommandRunnerMulti) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error

type RealCommandRunner

type RealCommandRunner struct{}

func (RealCommandRunner) RunCommand

func (c RealCommandRunner) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL