Documentation ¶
Overview ¶
Package mock_githubclient contains methods to mock githubclient package
Index ¶
- type ClientMock
- func (git_mock *ClientMock) GetRepositoryContents(log log.T, owner, repo, path string, opt *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, ...)
- func (git_mock *ClientMock) IsFileContentType(content *github.RepositoryContent) bool
- func (git_mock *ClientMock) ParseGetOptions(log log.T, getOptions string) (*github.RepositoryContentGetOptions, error)
- type OAuthClientMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
func (*ClientMock) GetRepositoryContents ¶
func (git_mock *ClientMock) GetRepositoryContents(log log.T, owner, repo, path string, opt *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, err error)
func (*ClientMock) IsFileContentType ¶
func (git_mock *ClientMock) IsFileContentType(content *github.RepositoryContent) bool
func (*ClientMock) ParseGetOptions ¶
func (git_mock *ClientMock) ParseGetOptions(log log.T, getOptions string) (*github.RepositoryContentGetOptions, error)
type OAuthClientMock ¶
func (*OAuthClientMock) GetGithubOauthClient ¶
func (git_mock *OAuthClientMock) GetGithubOauthClient(token string) *http.Client
Click to show internal directories.
Click to hide internal directories.