testclient

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 6 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
	Errors         map[string]error
}

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) ([]*clientctx.Repository, error)

func (*TestClient) CommitRepos added in v0.0.4

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

func (*TestClient) DiffRepos added in v0.0.3

func (c *TestClient) DiffRepos(ctx context.Context, repoDirs []string, cfg *repos.DiffConfig) error

func (*TestClient) FetchRepos added in v0.0.5

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

func (*TestClient) GetBranchAndTagNames added in v0.0.4

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

func (*TestClient) GetBranchNames added in v0.0.4

func (c *TestClient) GetBranchNames(ctx context.Context, dirs []string) ([]string, 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) GetRemoteNames added in v0.0.4

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

func (*TestClient) GetRepos

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

func (*TestClient) GetTagNames added in v0.0.4

func (c *TestClient) GetTagNames(ctx context.Context, dirs []string) ([]string, 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, ignoreEmpty bool, args ...string) error

func (*TestClient) MergeRepos added in v0.0.5

func (c *TestClient) MergeRepos(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) Rename added in v0.0.5

func (c *TestClient) Rename(ctx context.Context, dirs []string, oldName, newName string) error

func (*TestClient) ResetCommandsCalled

func (c *TestClient) ResetCommandsCalled()

func (*TestClient) ResetRepos added in v0.0.5

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

func (*TestClient) SetURLs

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

func (*TestClient) StageFiles added in v0.0.4

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

func (*TestClient) StashRepos added in v0.0.5

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

func (*TestClient) StatusRepos added in v0.0.4

func (c *TestClient) StatusRepos(ctx context.Context, dirs []string, ignoreEmpty bool, args ...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