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

    Source Files