test

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*TaskAccessor
}

func NewClient

func NewClient() *Client

func (*Client) Expectations

func (c *Client) Expectations()

type CreateTaskInput

type CreateTaskInput struct {
	Context context.Context
	Create  *task.TaskCreate
}

type CreateTaskOutput

type CreateTaskOutput struct {
	Task  *task.Task
	Error error
}

type DeleteTaskInput

type DeleteTaskInput struct {
	Context context.Context
	ID      string
}

type GetTaskInput

type GetTaskInput struct {
	Context context.Context
	ID      string
}

type GetTaskOutput

type GetTaskOutput struct {
	Task  *task.Task
	Error error
}

type ListTasksInput

type ListTasksInput struct {
	Context    context.Context
	Filter     *task.TaskFilter
	Pagination *page.Pagination
}

type ListTasksOutput

type ListTasksOutput struct {
	Tasks task.Tasks
	Error error
}

type TaskAccessor

type TaskAccessor struct {
	*test.Mock
	ListTasksInvocations  int
	ListTasksInputs       []ListTasksInput
	ListTasksOutputs      []ListTasksOutput
	CreateTaskInvocations int
	CreateTaskInputs      []CreateTaskInput
	CreateTaskOutputs     []CreateTaskOutput
	GetTaskInvocations    int
	GetTaskInputs         []GetTaskInput
	GetTaskOutputs        []GetTaskOutput
	UpdateTaskInvocations int
	UpdateTaskInputs      []UpdateTaskInput
	UpdateTaskOutputs     []UpdateTaskOutput
	DeleteTaskInvocations int
	DeleteTaskInputs      []DeleteTaskInput
	DeleteTaskOutputs     []error
}

func NewTaskAccessor

func NewTaskAccessor() *TaskAccessor

func (*TaskAccessor) CreateTask

func (t *TaskAccessor) CreateTask(ctx context.Context, create *task.TaskCreate) (*task.Task, error)

func (*TaskAccessor) DeleteTask

func (t *TaskAccessor) DeleteTask(ctx context.Context, id string) error

func (*TaskAccessor) Expectations

func (t *TaskAccessor) Expectations()

func (*TaskAccessor) GetTask

func (t *TaskAccessor) GetTask(ctx context.Context, id string) (*task.Task, error)

func (*TaskAccessor) ListTasks

func (t *TaskAccessor) ListTasks(ctx context.Context, filter *task.TaskFilter, pagination *page.Pagination) (task.Tasks, error)

func (*TaskAccessor) UpdateTask

func (t *TaskAccessor) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)

type UpdateTaskInput

type UpdateTaskInput struct {
	Context context.Context
	ID      string
	Update  *task.TaskUpdate
}

type UpdateTaskOutput

type UpdateTaskOutput struct {
	Task  *task.Task
	Error error
}

Jump to

Keyboard shortcuts

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