mock_githubclient

package
v0.0.0-...-2f0fe34 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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