testutils

package
v0.0.0-...-56a2066 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepo

type MockRepo struct {
	URLMock *mockhttpclient.URLMock
	// contains filtered or unexported fields
}

func NewMockRepo

func NewMockRepo(t sktest.TestingT, url string, repo git.GitDir, c *mockhttpclient.URLMock) *MockRepo

func (*MockRepo) Empty

func (mr *MockRepo) Empty() bool

func (*MockRepo) MockBranches

func (mr *MockRepo) MockBranches(ctx context.Context)

func (*MockRepo) MockGetCommit

func (mr *MockRepo) MockGetCommit(ctx context.Context, ref string)

func (*MockRepo) MockLog

func (mr *MockRepo) MockLog(ctx context.Context, logExpr string, opts ...gitiles.LogOption)

func (*MockRepo) MockReadFile

func (mr *MockRepo) MockReadFile(ctx context.Context, srcPath, ref string)

Jump to

Keyboard shortcuts

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