mocks

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockGithubRepositories = []*github.Repository{
	{
		Owner: &github.User{
			Login: &ownerName,
		},
		Name:    &repoName1,
		HTMLURL: &repoURL1,
	},
	{
		Owner: &github.User{
			Login: &ownerName,
		},
		Name:    &repoName2,
		HTMLURL: &repoURL2,
	},
	{
		Owner: &github.User{
			Login: &ownerName,
		},
		Name:    &repoName3,
		HTMLURL: &repoURL3,
	},
	{
		Owner: &github.User{
			Login: &ownerName,
		},
		Name:     &repoName4,
		HTMLURL:  &repoURL4,
		Archived: &archivedFlag,
	},
}

Functions

func ConfigureMockGithubClient

func ConfigureMockGithubClient() auth.GithubClient

ConfigureMockGithubClient returns a valid GithubClient configured for testing purposes, complete with the mocked services

func GetMockGithubRepo

func GetMockGithubRepo() *github.Repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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