mock

package
v0.0.0-...-c4cacf9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubMock

type GitHubMock struct{}

GitHubMock implements GitHubInterface.

func (*GitHubMock) NewClient

func (g *GitHubMock) NewClient(httpClient *http.Client) blogo.GitHubClient

NewClient something

type OAuth2Mock

type OAuth2Mock struct{}

func (OAuth2Mock) AuthCodeURL

func (o OAuth2Mock) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string

func (*OAuth2Mock) Client

func (o *OAuth2Mock) Client(ctx context.Context, t *oauth2.Token) *http.Client

Client returns a new http.Client.

func (OAuth2Mock) Exchange

func (o OAuth2Mock) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)

type Oauth2HandlerMock

type Oauth2HandlerMock struct{}

func (Oauth2HandlerMock) DevOauthAuthorize

func (h Oauth2HandlerMock) DevOauthAuthorize(ctx *gin.Context)

type RepositoriesMock

type RepositoriesMock struct {
	blogo.RepositoriesService
}

RepositoriesMock mocks RepositoriesService

func (*RepositoriesMock) Get

Get returns a repository.

type UsersMock

type UsersMock struct {
	blogo.UsersService
}

UsersMock mocks UsersService

func (*UsersMock) Get

Get returns a user.

Jump to

Keyboard shortcuts

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