mocks

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 14 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

Index

Constants

This section is empty.

Variables

View Source
var DeleteOrganizationsTeamsMembershipsByOrganizationByTeamIdByUsername = mock.EndpointPattern{
	Pattern: "/organizations/{org_id}/team/{team_id}/memberships/{username}",
	Method:  "DELETE",
}
View Source
var GetOrganizationById = mock.EndpointPattern{
	Pattern: "/organizations/{org_id}",
	Method:  "GET",
}
View Source
var GetOrganizationsTeamByTeamId = mock.EndpointPattern{
	Pattern: "/organizations/{org_id}/team/{team_id}",
	Method:  "GET",
}
View Source
var GetOrganizationsTeamsMembersByTeamId = mock.EndpointPattern{
	Pattern: "/organizations/{org_id}/team/{team_id}/members",
	Method:  "GET",
}
View Source
var GetOrganizationsTeamsMembershipsByTeamIdByUsername = mock.EndpointPattern{
	Pattern: "/organizations/{org_id}/team/{team_id}/memberships/{username}",
	Method:  "GET",
}
View Source
var GetRepositoryById = mock.EndpointPattern{
	Pattern: "/repositories/{repository_id}",
	Method:  "GET",
}
View Source
var GetUserById = mock.EndpointPattern{
	Pattern: "/user/{id}",
	Method:  "GET",
}
View Source
var PutOrganizationsTeamsMembershipsByOrganizationByTeamIdByUsername = mock.EndpointPattern{
	Pattern: "/organizations/{org_id}/team/{team_id}/memberships/{username}",
	Method:  "PUT",
}

Functions

func MockGraphQL

func MockGraphQL() *githubv4.Client

Types

type MockGitHub

type MockGitHub struct {
	// contains filtered or unexported fields
}

func NewMockGitHub

func NewMockGitHub() *MockGitHub

func (MockGitHub) Seed

Seed sets up the mock database with a user that is part of a team that is in an organization.

func (MockGitHub) Server

func (mgh MockGitHub) Server() *http.Client

Jump to

Keyboard shortcuts

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