testclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestClient

type TestClient struct {
	CommandsCalled []string
}

func New

func New() *TestClient

func (*TestClient) Add

func (c *TestClient) Add(ctx context.Context, dirs []string, name, baseURL string) error

func (*TestClient) AssertCommandsCalled

func (c *TestClient) AssertCommandsCalled(t *testing.T, expectedCommands ...string)

func (*TestClient) AssertNoCommandsCalled

func (c *TestClient) AssertNoCommandsCalled(t *testing.T)

func (*TestClient) Branches

func (c *TestClient) Branches(ctx context.Context, repoDirs []string, args ...string) error

func (*TestClient) CheckoutRepos

func (c *TestClient) CheckoutRepos(ctx context.Context, repoDirs []string, args ...string) error

func (*TestClient) CloneRepos

func (c *TestClient) CloneRepos(ctx context.Context, baseDir string) ([]*client.Repository, error)

func (*TestClient) GetDirs

func (c *TestClient) GetDirs(ctx context.Context, dir string) ([]string, error)

func (*TestClient) GetLogins

func (c *TestClient) GetLogins(ctx context.Context) ([]string, error)

func (*TestClient) GetRepos

func (c *TestClient) GetRepos(ctx context.Context, name string) ([]*github.Repository, error)

func (*TestClient) ListTags

func (c *TestClient) ListTags(ctx context.Context, repoDirs []string, args ...string) error

func (*TestClient) PullRepos

func (c *TestClient) PullRepos(ctx context.Context, repoDirs []string, args ...string) error

func (*TestClient) PushRepos

func (c *TestClient) PushRepos(ctx context.Context, repoDirs []string, args ...string) error

func (*TestClient) Remotes

func (c *TestClient) Remotes(ctx context.Context, repoDirs []string, args ...string) error

func (*TestClient) Remove

func (c *TestClient) Remove(ctx context.Context, dirs []string, name string) error

func (*TestClient) ResetCommandsCalled

func (c *TestClient) ResetCommandsCalled()

func (*TestClient) SetURLs

func (c *TestClient) SetURLs(ctx context.Context, repoDirs []string, name, baseURL string) error

func (*TestClient) TagRepos

func (c *TestClient) TagRepos(ctx context.Context, repoDirs []string, args ...string) error

Jump to

Keyboard shortcuts

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