go: go.chromium.org/chromiumos/infra/go/internal/test_util Index | Files

package test_util

import "go.chromium.org/chromiumos/infra/go/internal/test_util"

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

Package Files

test_util.go

Variables

var (
    CommandRunnerImpl cmd.CommandRunner = cmd.RealCommandRunner{}
)

func AssertContentsEqual Uses

func AssertContentsEqual(path_a, path_b string) error

AssertContentsEqual checks that there's no difference between two directories/files.

func AssertGitBranches Uses

func AssertGitBranches(gitRepo string, branches []string) error

AssertGitBranches asserts that the git repo has the given branches (it may have others, too).

func AssertGitBranchesExact Uses

func AssertGitBranchesExact(gitRepo string, branches []string) error

AssertGitBranches asserts that the git repo has only the correct branches.

Package test_util imports 9 packages (graph) and is imported by 1 packages. Updated 2019-09-21. Refresh now. Tools for package owners.