mock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobStoreMock

type JobStoreMock struct {

	// CreateJobFunc mocks the CreateJob method.
	CreateJobFunc func(ctx context.Context, id string) (models.Job, error)

	// GetJobFunc mocks the GetJob method.
	GetJobFunc func(ctx context.Context, id string) (models.Job, error)
	// contains filtered or unexported fields
}

func (*JobStoreMock) CreateJob

func (mock *JobStoreMock) CreateJob(ctx context.Context, id string) (job models.Job, err error)

CreateJob calls CreateJobFunc.

func (*JobStoreMock) GetJob

func (mock *JobStoreMock) GetJob(ctx context.Context, id string) (job models.Job, err error)

GetJob calls GetJobFunc.

Jump to

Keyboard shortcuts

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