Documentation
¶
Index ¶
- type TestClient
- func (c *TestClient) Add(ctx context.Context, dirs []string, name, baseURL string) error
- func (c *TestClient) AssertCommandsCalled(t *testing.T, expectedCommands ...string)
- func (c *TestClient) AssertNoCommandsCalled(t *testing.T)
- func (c *TestClient) Branches(ctx context.Context, repoDirs []string, args ...string) error
- func (c *TestClient) CheckoutRepos(ctx context.Context, repoDirs []string, args ...string) error
- func (c *TestClient) CloneRepos(ctx context.Context, baseDir string) ([]*client.Repository, error)
- func (c *TestClient) DiffRepos(ctx context.Context, repoDirs []string, cfg *client.DiffConfig) error
- func (c *TestClient) GetDirs(ctx context.Context, dir string) ([]string, error)
- func (c *TestClient) GetLogins(ctx context.Context) ([]string, error)
- func (c *TestClient) GetRepos(ctx context.Context, name string) ([]*github.Repository, error)
- func (c *TestClient) ListTags(ctx context.Context, repoDirs []string, args ...string) error
- func (c *TestClient) LogRepos(ctx context.Context, repoDirs []string, ignoreEmtpy bool, args ...string) error
- func (c *TestClient) PullRepos(ctx context.Context, repoDirs []string, args ...string) error
- func (c *TestClient) PushRepos(ctx context.Context, repoDirs []string, args ...string) error
- func (c *TestClient) Remotes(ctx context.Context, repoDirs []string, args ...string) error
- func (c *TestClient) Remove(ctx context.Context, dirs []string, name string) error
- func (c *TestClient) ResetCommandsCalled()
- func (c *TestClient) SetURLs(ctx context.Context, repoDirs []string, name, baseURL string) error
- func (c *TestClient) TagRepos(ctx context.Context, repoDirs []string, args ...string) error
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) AssertCommandsCalled ¶
func (c *TestClient) AssertCommandsCalled(t *testing.T, expectedCommands ...string)
func (*TestClient) AssertNoCommandsCalled ¶
func (c *TestClient) AssertNoCommandsCalled(t *testing.T)
func (*TestClient) CheckoutRepos ¶
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) 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) ResetCommandsCalled ¶
func (c *TestClient) ResetCommandsCalled()
Click to show internal directories.
Click to hide internal directories.