mock_githubclient

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_githubclient contains methods to mock githubclient package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	mock.Mock
}

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

type OAuthClientMock struct {
	mock.Mock
}

func (*OAuthClientMock) GetGithubOauthClient

func (git_mock *OAuthClientMock) GetGithubOauthClient(token string) *http.Client

Jump to

Keyboard shortcuts

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