mocks

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend_GetLock_OngoingVerification

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

func (*Backend_GetLock_OngoingVerification) GetAllCapturedArguments

func (c *Backend_GetLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string)

func (*Backend_GetLock_OngoingVerification) GetCapturedArguments

func (c *Backend_GetLock_OngoingVerification) GetCapturedArguments() (models.Project, string)

type Backend_List_OngoingVerification

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

func (*Backend_List_OngoingVerification) GetAllCapturedArguments

func (c *Backend_List_OngoingVerification) GetAllCapturedArguments()

func (*Backend_List_OngoingVerification) GetCapturedArguments

func (c *Backend_List_OngoingVerification) GetCapturedArguments()

type Backend_TryLock_OngoingVerification

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

func (*Backend_TryLock_OngoingVerification) GetAllCapturedArguments

func (c *Backend_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectLock)

func (*Backend_TryLock_OngoingVerification) GetCapturedArguments

func (c *Backend_TryLock_OngoingVerification) GetCapturedArguments() models.ProjectLock

type Backend_UnlockByPull_OngoingVerification

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

func (*Backend_UnlockByPull_OngoingVerification) GetAllCapturedArguments

func (c *Backend_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)

func (*Backend_UnlockByPull_OngoingVerification) GetCapturedArguments

func (c *Backend_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)

type Backend_Unlock_OngoingVerification

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

func (*Backend_Unlock_OngoingVerification) GetAllCapturedArguments

func (c *Backend_Unlock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string)

func (*Backend_Unlock_OngoingVerification) GetCapturedArguments

func (c *Backend_Unlock_OngoingVerification) GetCapturedArguments() (models.Project, string)

type Locker_GetLock_OngoingVerification

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

func (*Locker_GetLock_OngoingVerification) GetAllCapturedArguments

func (c *Locker_GetLock_OngoingVerification) GetAllCapturedArguments() (_param0 []string)

func (*Locker_GetLock_OngoingVerification) GetCapturedArguments

func (c *Locker_GetLock_OngoingVerification) GetCapturedArguments() string

type Locker_List_OngoingVerification

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

func (*Locker_List_OngoingVerification) GetAllCapturedArguments

func (c *Locker_List_OngoingVerification) GetAllCapturedArguments()

func (*Locker_List_OngoingVerification) GetCapturedArguments

func (c *Locker_List_OngoingVerification) GetCapturedArguments()

type Locker_TryLock_OngoingVerification

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

func (*Locker_TryLock_OngoingVerification) GetAllCapturedArguments

func (c *Locker_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string, _param2 []models.PullRequest, _param3 []models.User)

func (*Locker_TryLock_OngoingVerification) GetCapturedArguments

type Locker_UnlockByPull_OngoingVerification

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

func (*Locker_UnlockByPull_OngoingVerification) GetAllCapturedArguments

func (c *Locker_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)

func (*Locker_UnlockByPull_OngoingVerification) GetCapturedArguments

func (c *Locker_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)

type Locker_Unlock_OngoingVerification

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

func (*Locker_Unlock_OngoingVerification) GetAllCapturedArguments

func (c *Locker_Unlock_OngoingVerification) GetAllCapturedArguments() (_param0 []string)

func (*Locker_Unlock_OngoingVerification) GetCapturedArguments

func (c *Locker_Unlock_OngoingVerification) GetCapturedArguments() string

type MockBackend

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

func NewMockBackend

func NewMockBackend() *MockBackend

func (*MockBackend) GetLock

func (mock *MockBackend) GetLock(project models.Project, workspace string) (*models.ProjectLock, error)

func (*MockBackend) List

func (mock *MockBackend) List() ([]models.ProjectLock, error)

func (*MockBackend) TryLock

func (mock *MockBackend) TryLock(lock models.ProjectLock) (bool, models.ProjectLock, error)

func (*MockBackend) Unlock

func (mock *MockBackend) Unlock(project models.Project, workspace string) (*models.ProjectLock, error)

func (*MockBackend) UnlockByPull

func (mock *MockBackend) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)

func (*MockBackend) VerifyWasCalled

func (mock *MockBackend) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierBackend

func (*MockBackend) VerifyWasCalledInOrder

func (mock *MockBackend) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierBackend

func (*MockBackend) VerifyWasCalledOnce

func (mock *MockBackend) VerifyWasCalledOnce() *VerifierBackend

type MockLocker

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

func NewMockLocker

func NewMockLocker() *MockLocker

func (*MockLocker) GetLock

func (mock *MockLocker) GetLock(key string) (*models.ProjectLock, error)

func (*MockLocker) List

func (mock *MockLocker) List() (map[string]models.ProjectLock, error)

func (*MockLocker) TryLock

func (mock *MockLocker) TryLock(p models.Project, workspace string, pull models.PullRequest, user models.User) (locking.TryLockResponse, error)

func (*MockLocker) Unlock

func (mock *MockLocker) Unlock(key string) (*models.ProjectLock, error)

func (*MockLocker) UnlockByPull

func (mock *MockLocker) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)

func (*MockLocker) VerifyWasCalled

func (mock *MockLocker) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierLocker

func (*MockLocker) VerifyWasCalledInOrder

func (mock *MockLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierLocker

func (*MockLocker) VerifyWasCalledOnce

func (mock *MockLocker) VerifyWasCalledOnce() *VerifierLocker

type VerifierBackend

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

func (*VerifierBackend) GetLock

func (verifier *VerifierBackend) GetLock(project models.Project, workspace string) *Backend_GetLock_OngoingVerification

func (*VerifierBackend) List

func (*VerifierBackend) TryLock

func (*VerifierBackend) Unlock

func (verifier *VerifierBackend) Unlock(project models.Project, workspace string) *Backend_Unlock_OngoingVerification

func (*VerifierBackend) UnlockByPull

func (verifier *VerifierBackend) UnlockByPull(repoFullName string, pullNum int) *Backend_UnlockByPull_OngoingVerification

type VerifierLocker

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

func (*VerifierLocker) GetLock

func (*VerifierLocker) List

func (*VerifierLocker) TryLock

func (*VerifierLocker) Unlock

func (*VerifierLocker) UnlockByPull

func (verifier *VerifierLocker) UnlockByPull(repoFullName string, pullNum int) *Locker_UnlockByPull_OngoingVerification

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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