testclient

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 5 Imported by: 0

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) DiffRepos added in v0.0.3

func (c *TestClient) DiffRepos(ctx context.Context, repoDirs []string, cfg *client.DiffConfig) 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) LogRepos added in v0.0.3

func (c *TestClient) LogRepos(ctx context.Context, repoDirs []string, ignoreEmtpy bool, 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