mock

package
v0.0.0-...-6fcfa26 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2015 License: MIT Imports: 9 Imported by: ? 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

This section is empty.

Functions

This section is empty.

Types

type AccountsClient

type AccountsClient struct {
	Create_               func(ctx context.Context, in *sourcegraph.NewAccount) (*sourcegraph.UserSpec, error)
	RequestPasswordReset_ func(ctx context.Context, in *sourcegraph.EmailAddr) (*sourcegraph.User, error)
	ResetPassword_        func(ctx context.Context, in *sourcegraph.NewPassword) (*pbtypes.Void, error)
	Update_               func(ctx context.Context, in *sourcegraph.User) (*pbtypes.Void, error)
}

func (*AccountsClient) Create

func (*AccountsClient) RequestPasswordReset

func (s *AccountsClient) RequestPasswordReset(ctx context.Context, in *sourcegraph.EmailAddr, opts ...grpc.CallOption) (*sourcegraph.User, error)

func (*AccountsClient) ResetPassword

func (s *AccountsClient) ResetPassword(ctx context.Context, in *sourcegraph.NewPassword, opts ...grpc.CallOption) (*pbtypes.Void, error)

func (*AccountsClient) Update

func (s *AccountsClient) Update(ctx context.Context, in *sourcegraph.User, opts ...grpc.CallOption) (*pbtypes.Void, error)

type AccountsServer

type AccountsServer struct {
	Create_               func(v0 context.Context, v1 *sourcegraph.NewAccount) (*sourcegraph.UserSpec, error)
	RequestPasswordReset_ func(v0 context.Context, v1 *sourcegraph.EmailAddr) (*sourcegraph.User, error)
	ResetPassword_        func(v0 context.Context, v1 *sourcegraph.NewPassword) (*pbtypes.Void, error)
	Update_               func(v0 context.Context, v1 *sourcegraph.User) (*pbtypes.Void, error)
}

func (*AccountsServer) Create

func (*AccountsServer) RequestPasswordReset

func (s *AccountsServer) RequestPasswordReset(v0 context.Context, v1 *sourcegraph.EmailAddr) (*sourcegraph.User, error)

func (*AccountsServer) ResetPassword

func (s *AccountsServer) ResetPassword(v0 context.Context, v1 *sourcegraph.NewPassword) (*pbtypes.Void, error)

func (*AccountsServer) Update

type AuthClient

type AuthClient struct {
	GetAuthorizationCode_ func(ctx context.Context, in *sourcegraph.AuthorizationCodeRequest) (*sourcegraph.AuthorizationCode, error)
	GetAccessToken_       func(ctx context.Context, in *sourcegraph.AccessTokenRequest) (*sourcegraph.AccessTokenResponse, error)
	Identify_             func(ctx context.Context, in *pbtypes.Void) (*sourcegraph.AuthInfo, error)
}

func (*AuthClient) GetAccessToken

func (*AuthClient) GetAuthorizationCode

func (*AuthClient) Identify

func (s *AuthClient) Identify(ctx context.Context, in *pbtypes.Void, opts ...grpc.CallOption) (*sourcegraph.AuthInfo, error)

type AuthServer

type AuthServer struct {
	GetAuthorizationCode_ func(v0 context.Context, v1 *sourcegraph.AuthorizationCodeRequest) (*sourcegraph.AuthorizationCode, error)
	GetAccessToken_       func(v0 context.Context, v1 *sourcegraph.AccessTokenRequest) (*sourcegraph.AccessTokenResponse, error)
	Identify_             func(v0 context.Context, v1 *pbtypes.Void) (*sourcegraph.AuthInfo, error)
}

func (*AuthServer) Identify

func (s *AuthServer) Identify(v0 context.Context, v1 *pbtypes.Void) (*sourcegraph.AuthInfo, error)

type BuildsClient

func (*BuildsClient) Create

func (*BuildsClient) CreateTasks

func (*BuildsClient) DequeueNext

func (*BuildsClient) Get

func (*BuildsClient) GetLog

func (*BuildsClient) GetRepoBuildInfo

func (*BuildsClient) GetTaskLog

func (*BuildsClient) List

func (*BuildsClient) ListBuildTasks

func (*BuildsClient) MockGetRepoBuildInfo

func (s *BuildsClient) MockGetRepoBuildInfo(t *testing.T, info *sourcegraph.RepoBuildInfo) (called *bool)

func (*BuildsClient) MockGet_Return

func (s *BuildsClient) MockGet_Return(t *testing.T, want *sourcegraph.Build) (called *bool)

func (*BuildsClient) MockList

func (s *BuildsClient) MockList(t *testing.T, want ...*sourcegraph.Build) (called *bool)

func (*BuildsClient) MockListBuildTasks

func (s *BuildsClient) MockListBuildTasks(t *testing.T, want ...*sourcegraph.BuildTask) (called *bool)

func (*BuildsClient) Update

func (*BuildsClient) UpdateTask

type BuildsServer

func (*BuildsServer) Create

func (*BuildsServer) CreateTasks

func (*BuildsServer) DequeueNext

func (*BuildsServer) Get

func (*BuildsServer) GetLog

func (*BuildsServer) GetRepoBuildInfo

func (*BuildsServer) GetTaskLog

func (*BuildsServer) List

func (*BuildsServer) ListBuildTasks

func (*BuildsServer) MockGetRepoBuildInfo

func (s *BuildsServer) MockGetRepoBuildInfo(t *testing.T, info *sourcegraph.RepoBuildInfo) (called *bool)

func (*BuildsServer) MockGet_Return

func (s *BuildsServer) MockGet_Return(t *testing.T, want *sourcegraph.Build) (called *bool)

func (*BuildsServer) MockList

func (s *BuildsServer) MockList(t *testing.T, want ...*sourcegraph.Build) (called *bool)

func (*BuildsServer) MockListBuildTasks

func (s *BuildsServer) MockListBuildTasks(t *testing.T, want ...*sourcegraph.BuildTask) (called *bool)

func (*BuildsServer) Update

func (*BuildsServer) UpdateTask

type ChangesetsClient

func (*ChangesetsClient) Create

func (*ChangesetsClient) CreateReview

func (*ChangesetsClient) Get

func (*ChangesetsClient) List

func (*ChangesetsClient) ListEvents

func (*ChangesetsClient) Update

type ChangesetsServer

func (*ChangesetsServer) Create

func (*ChangesetsServer) Get

func (*ChangesetsServer) List

func (*ChangesetsServer) ListEvents

func (*ChangesetsServer) Update

type DefsClient

func (*DefsClient) Get

func (*DefsClient) List

func (*DefsClient) ListAuthors

func (*DefsClient) ListClients

func (*DefsClient) ListExamples

func (*DefsClient) ListRefs

func (*DefsClient) MockGet

func (s *DefsClient) MockGet(t *testing.T, wantDef sourcegraph.DefSpec) (called *bool)

func (*DefsClient) MockGet_Return

func (s *DefsClient) MockGet_Return(t *testing.T, wantDef *sourcegraph.Def) (called *bool)

func (*DefsClient) MockList

func (s *DefsClient) MockList(t *testing.T, wantDefs ...*sourcegraph.Def) (called *bool)

type DefsServer

func (*DefsServer) Get

func (*DefsServer) List

func (*DefsServer) ListAuthors

func (*DefsServer) ListClients

func (*DefsServer) ListExamples

func (*DefsServer) ListRefs

func (*DefsServer) MockGet

func (s *DefsServer) MockGet(t *testing.T, wantDef sourcegraph.DefSpec) (called *bool)

func (*DefsServer) MockGet_Return

func (s *DefsServer) MockGet_Return(t *testing.T, wantDef *sourcegraph.Def) (called *bool)

func (*DefsServer) MockList

func (s *DefsServer) MockList(t *testing.T, wantDefs ...*sourcegraph.Def) (called *bool)

type DeltasClient

func (*DeltasClient) Get

func (*DeltasClient) ListDefs

func (*DeltasClient) ListFiles

func (*DeltasClient) ListUnits

type DeltasServer

func (*DeltasServer) Get

func (*DeltasServer) ListDefs

func (*DeltasServer) ListFiles

func (*DeltasServer) ListUnits

type DiscussionsClient

func (*DiscussionsClient) Create

func (*DiscussionsClient) CreateComment

func (*DiscussionsClient) Get

func (*DiscussionsClient) List

func (*DiscussionsClient) UpdateRating

type GraphUplinkClient

type GraphUplinkClient struct {
	Push_       func(ctx context.Context, in *sourcegraph.MetricsSnapshot) (*pbtypes.Void, error)
	PushEvents_ func(ctx context.Context, in *sourcegraph.UserEventList) (*pbtypes.Void, error)
}

func (*GraphUplinkClient) Push

func (*GraphUplinkClient) PushEvents

type GraphUplinkServer

type GraphUplinkServer struct {
	Push_       func(v0 context.Context, v1 *sourcegraph.MetricsSnapshot) (*pbtypes.Void, error)
	PushEvents_ func(v0 context.Context, v1 *sourcegraph.UserEventList) (*pbtypes.Void, error)
}

func (*GraphUplinkServer) Push

func (*GraphUplinkServer) PushEvents

type MarkdownClient

type MarkdownClient struct {
	Render_ func(ctx context.Context, in *sourcegraph.MarkdownRenderOp) (*sourcegraph.MarkdownData, error)
}

func (*MarkdownClient) Render

type MarkdownServer

type MarkdownServer struct {
	Render_ func(v0 context.Context, v1 *sourcegraph.MarkdownRenderOp) (*sourcegraph.MarkdownData, error)
}

func (*MarkdownServer) Render

type MetaClient

type MetaClient struct {
	Status_ func(ctx context.Context, in *pbtypes.Void) (*sourcegraph.ServerStatus, error)
	Config_ func(ctx context.Context, in *pbtypes.Void) (*sourcegraph.ServerConfig, error)
}

func (*MetaClient) Config

func (*MetaClient) Status

type MetaServer

type MetaServer struct {
	Status_ func(v0 context.Context, v1 *pbtypes.Void) (*sourcegraph.ServerStatus, error)
	Config_ func(v0 context.Context, v1 *pbtypes.Void) (*sourcegraph.ServerConfig, error)
}

func (*MetaServer) Config

func (*MetaServer) Status

type MirrorReposClient

type MirrorReposClient struct {
	RefreshVCS_ func(ctx context.Context, in *sourcegraph.MirrorReposRefreshVCSOp) (*pbtypes.Void, error)
}

func (*MirrorReposClient) RefreshVCS

type MirrorReposServer

type MirrorReposServer struct {
	RefreshVCS_ func(v0 context.Context, v1 *sourcegraph.MirrorReposRefreshVCSOp) (*pbtypes.Void, error)
}

func (*MirrorReposServer) RefreshVCS

type MirroredRepoSSHKeysClient

type MirroredRepoSSHKeysClient struct {
	Create_ func(ctx context.Context, in *sourcegraph.MirroredRepoSSHKeysCreateOp) (*pbtypes.Void, error)
	Get_    func(ctx context.Context, in *sourcegraph.RepoSpec) (*sourcegraph.SSHPrivateKey, error)
	Delete_ func(ctx context.Context, in *sourcegraph.RepoSpec) (*pbtypes.Void, error)
}

func (*MirroredRepoSSHKeysClient) Create

func (*MirroredRepoSSHKeysClient) Delete

func (*MirroredRepoSSHKeysClient) Get

type MirroredRepoSSHKeysServer

type MirroredRepoSSHKeysServer struct {
	Create_ func(v0 context.Context, v1 *sourcegraph.MirroredRepoSSHKeysCreateOp) (*pbtypes.Void, error)
	Get_    func(v0 context.Context, v1 *sourcegraph.RepoSpec) (*sourcegraph.SSHPrivateKey, error)
	Delete_ func(v0 context.Context, v1 *sourcegraph.RepoSpec) (*pbtypes.Void, error)
}

func (*MirroredRepoSSHKeysServer) Create

func (*MirroredRepoSSHKeysServer) Delete

func (*MirroredRepoSSHKeysServer) Get

type OrgsClient

type OrgsClient struct {
	Get_         func(ctx context.Context, in *sourcegraph.OrgSpec) (*sourcegraph.Org, error)
	List_        func(ctx context.Context, in *sourcegraph.OrgsListOp) (*sourcegraph.OrgList, error)
	ListMembers_ func(ctx context.Context, in *sourcegraph.OrgsListMembersOp) (*sourcegraph.UserList, error)
}

func (*OrgsClient) Get

func (*OrgsClient) List

func (*OrgsClient) ListMembers

type OrgsServer

type OrgsServer struct {
	Get_         func(v0 context.Context, v1 *sourcegraph.OrgSpec) (*sourcegraph.Org, error)
	List_        func(v0 context.Context, v1 *sourcegraph.OrgsListOp) (*sourcegraph.OrgList, error)
	ListMembers_ func(v0 context.Context, v1 *sourcegraph.OrgsListMembersOp) (*sourcegraph.UserList, error)
}

func (*OrgsServer) Get

func (*OrgsServer) List

func (*OrgsServer) ListMembers

type PeopleClient

type PeopleClient struct {
	Get_ func(ctx context.Context, in *sourcegraph.PersonSpec) (*sourcegraph.Person, error)
}

func (*PeopleClient) Get

type PeopleServer

type PeopleServer struct {
	Get_ func(v0 context.Context, v1 *sourcegraph.PersonSpec) (*sourcegraph.Person, error)
}

func (*PeopleServer) Get

type RegisteredClientsClient

func (*RegisteredClientsClient) Create

func (*RegisteredClientsClient) Delete

func (*RegisteredClientsClient) Get

func (*RegisteredClientsClient) GetCurrent

func (*RegisteredClientsClient) GetUserPermissions

func (*RegisteredClientsClient) ListUserPermissions

func (*RegisteredClientsClient) SetUserPermissions

func (s *RegisteredClientsClient) SetUserPermissions(ctx context.Context, in *sourcegraph.UserPermissions, opts ...grpc.CallOption) (*pbtypes.Void, error)

func (*RegisteredClientsClient) Update

type RegisteredClientsServer

func (*RegisteredClientsServer) Create

func (*RegisteredClientsServer) Delete

func (*RegisteredClientsServer) Get

func (*RegisteredClientsServer) GetCurrent

func (*RegisteredClientsServer) GetUserPermissions

func (*RegisteredClientsServer) ListUserPermissions

func (*RegisteredClientsServer) SetUserPermissions

func (*RegisteredClientsServer) Update

type RepoBadgesClient

type RepoBadgesClient struct {
	ListBadges_   func(ctx context.Context, in *sourcegraph.RepoSpec) (*sourcegraph.BadgeList, error)
	ListCounters_ func(ctx context.Context, in *sourcegraph.RepoSpec) (*sourcegraph.CounterList, error)
	RecordHit_    func(ctx context.Context, in *sourcegraph.RepoSpec) (*pbtypes.Void, error)
	CountHits_    func(ctx context.Context, in *sourcegraph.RepoBadgesCountHitsOp) (*sourcegraph.RepoBadgesCountHitsResult, error)
}

func (*RepoBadgesClient) ListBadges

func (*RepoBadgesClient) ListCounters

func (*RepoBadgesClient) RecordHit

func (s *RepoBadgesClient) RecordHit(ctx context.Context, in *sourcegraph.RepoSpec, opts ...grpc.CallOption) (*pbtypes.Void, error)

type RepoBadgesServer

type RepoBadgesServer struct {
	ListBadges_   func(v0 context.Context, v1 *sourcegraph.RepoSpec) (*sourcegraph.BadgeList, error)
	ListCounters_ func(v0 context.Context, v1 *sourcegraph.RepoSpec) (*sourcegraph.CounterList, error)
	RecordHit_    func(v0 context.Context, v1 *sourcegraph.RepoSpec) (*pbtypes.Void, error)
	CountHits_    func(v0 context.Context, v1 *sourcegraph.RepoBadgesCountHitsOp) (*sourcegraph.RepoBadgesCountHitsResult, error)
}

func (*RepoBadgesServer) ListBadges

func (*RepoBadgesServer) ListCounters

func (*RepoBadgesServer) RecordHit

type RepoStatusesClient

type RepoStatusesClient struct {
	GetCombined_ func(ctx context.Context, in *sourcegraph.RepoRevSpec) (*sourcegraph.CombinedStatus, error)
	Create_      func(ctx context.Context, in *sourcegraph.RepoStatusesCreateOp) (*sourcegraph.RepoStatus, error)
}

func (*RepoStatusesClient) Create

func (*RepoStatusesClient) GetCombined

type RepoStatusesServer

type RepoStatusesServer struct {
	GetCombined_ func(v0 context.Context, v1 *sourcegraph.RepoRevSpec) (*sourcegraph.CombinedStatus, error)
	Create_      func(v0 context.Context, v1 *sourcegraph.RepoStatusesCreateOp) (*sourcegraph.RepoStatus, error)
}

func (*RepoStatusesServer) Create

func (*RepoStatusesServer) GetCombined

type ReposClient

func (*ReposClient) Create

func (*ReposClient) Delete

func (s *ReposClient) Delete(ctx context.Context, in *sourcegraph.RepoSpec, opts ...grpc.CallOption) (*pbtypes.Void, error)

func (*ReposClient) Disable

func (s *ReposClient) Disable(ctx context.Context, in *sourcegraph.RepoSpec, opts ...grpc.CallOption) (*pbtypes.Void, error)

func (*ReposClient) Enable

func (s *ReposClient) Enable(ctx context.Context, in *sourcegraph.RepoSpec, opts ...grpc.CallOption) (*pbtypes.Void, error)

func (*ReposClient) Get

func (*ReposClient) GetCommit

func (s *ReposClient) GetCommit(ctx context.Context, in *sourcegraph.RepoRevSpec, opts ...grpc.CallOption) (*vcs.Commit, error)

func (*ReposClient) GetConfig

func (*ReposClient) GetReadme

func (*ReposClient) List

func (*ReposClient) ListBranches

func (*ReposClient) ListCommits

func (*ReposClient) ListCommitters

func (*ReposClient) ListTags

func (*ReposClient) MockGet

func (s *ReposClient) MockGet(t *testing.T, wantRepo string) (called *bool)

func (*ReposClient) MockGetCommit_ByID_NoCheck

func (s *ReposClient) MockGetCommit_ByID_NoCheck(t *testing.T, commitID vcs.CommitID) (called *bool)

func (*ReposClient) MockGetCommit_Return_NoCheck

func (s *ReposClient) MockGetCommit_Return_NoCheck(t *testing.T, commit *vcs.Commit) (called *bool)

func (*ReposClient) MockGet_Return

func (s *ReposClient) MockGet_Return(t *testing.T, returns *sourcegraph.Repo) (called *bool)

func (*ReposClient) MockList

func (s *ReposClient) MockList(t *testing.T, wantRepos ...string) (called *bool)

func (*ReposClient) MockListCommits

func (s *ReposClient) MockListCommits(t *testing.T, wantCommitIDs ...vcs.CommitID) (called *bool)

func (*ReposClient) Update

type ReposServer

func (*ReposServer) Create

func (*ReposServer) Delete

func (*ReposServer) Disable

func (s *ReposServer) Disable(v0 context.Context, v1 *sourcegraph.RepoSpec) (*pbtypes.Void, error)

func (*ReposServer) Enable

func (*ReposServer) Get

func (*ReposServer) GetCommit

func (s *ReposServer) GetCommit(v0 context.Context, v1 *sourcegraph.RepoRevSpec) (*vcs.Commit, error)

func (*ReposServer) GetConfig

func (*ReposServer) GetReadme

func (*ReposServer) List

func (*ReposServer) ListBranches

func (*ReposServer) ListCommits

func (*ReposServer) ListCommitters

func (*ReposServer) ListTags

func (*ReposServer) MockGet

func (s *ReposServer) MockGet(t *testing.T, wantRepo string) (called *bool)

func (*ReposServer) MockGetCommit_ByID_NoCheck

func (s *ReposServer) MockGetCommit_ByID_NoCheck(t *testing.T, commitID vcs.CommitID) (called *bool)

func (*ReposServer) MockGetCommit_Return_NoCheck

func (s *ReposServer) MockGetCommit_Return_NoCheck(t *testing.T, commit *vcs.Commit) (called *bool)

func (*ReposServer) MockGet_Return

func (s *ReposServer) MockGet_Return(t *testing.T, returns *sourcegraph.Repo) (called *bool)

func (*ReposServer) MockList

func (s *ReposServer) MockList(t *testing.T, wantRepos ...string) (called *bool)

func (*ReposServer) MockListCommits

func (s *ReposServer) MockListCommits(t *testing.T, wantCommitIDs ...vcs.CommitID) (called *bool)

func (*ReposServer) Update

type SearchClient

func (*SearchClient) Complete

func (*SearchClient) Search

func (*SearchClient) SearchText

func (*SearchClient) SearchTokens

func (*SearchClient) Suggest

type SearchServer

func (*SearchServer) Complete

func (*SearchServer) Search

func (*SearchServer) SearchTokens

func (*SearchServer) Suggest

type UnitsClient

type UnitsClient struct {
	Get_  func(ctx context.Context, in *sourcegraph.UnitSpec) (*unit.RepoSourceUnit, error)
	List_ func(ctx context.Context, in *sourcegraph.UnitListOptions) (*sourcegraph.RepoSourceUnitList, error)
}

func (*UnitsClient) Get

func (*UnitsClient) List

type UnitsServer

type UnitsServer struct {
	Get_  func(v0 context.Context, v1 *sourcegraph.UnitSpec) (*unit.RepoSourceUnit, error)
	List_ func(v0 context.Context, v1 *sourcegraph.UnitListOptions) (*sourcegraph.RepoSourceUnitList, error)
}

func (*UnitsServer) Get

type UsersClient

type UsersClient struct {
	Get_        func(ctx context.Context, in *sourcegraph.UserSpec) (*sourcegraph.User, error)
	ListEmails_ func(ctx context.Context, in *sourcegraph.UserSpec) (*sourcegraph.EmailAddrList, error)
	List_       func(ctx context.Context, in *sourcegraph.UsersListOptions) (*sourcegraph.UserList, error)
}

func (*UsersClient) Get

func (*UsersClient) List

func (*UsersClient) ListEmails

func (*UsersClient) MockGet

func (s *UsersClient) MockGet(t *testing.T, wantUser string) (called *bool)

func (*UsersClient) MockGet_Return

func (s *UsersClient) MockGet_Return(t *testing.T, returns *sourcegraph.User) (called *bool)

func (*UsersClient) MockList

func (s *UsersClient) MockList(t *testing.T, wantUsers ...string) (called *bool)

type UsersServer

type UsersServer struct {
	Get_        func(v0 context.Context, v1 *sourcegraph.UserSpec) (*sourcegraph.User, error)
	ListEmails_ func(v0 context.Context, v1 *sourcegraph.UserSpec) (*sourcegraph.EmailAddrList, error)
	List_       func(v0 context.Context, v1 *sourcegraph.UsersListOptions) (*sourcegraph.UserList, error)
}

func (*UsersServer) Get

func (*UsersServer) List

func (*UsersServer) ListEmails

func (*UsersServer) MockGet

func (s *UsersServer) MockGet(t *testing.T, wantUser string) (called *bool)

func (*UsersServer) MockGet_Return

func (s *UsersServer) MockGet_Return(t *testing.T, returns *sourcegraph.User) (called *bool)

func (*UsersServer) MockList

func (s *UsersServer) MockList(t *testing.T, wantUsers ...string) (called *bool)

Jump to

Keyboard shortcuts

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