test

package
v0.0.0-...-86643de Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestController

type TestController struct {
	mock.Mock
}

TestController ia a mocked (using testify/mock) objects that acts like a RESTful controller. It is used internally for testing code, but you can use it yourself if you need to in your test code too.

func (*TestController) After

func (c *TestController) After(ctx context.Context) error

func (*TestController) Before

func (c *TestController) Before(ctx context.Context) error

func (*TestController) Create

func (c *TestController) Create(ctx context.Context) error

func (*TestController) Delete

func (c *TestController) Delete(id string, ctx context.Context) error

func (*TestController) DeleteMany

func (c *TestController) DeleteMany(ctx context.Context) error

func (*TestController) Head

func (c *TestController) Head(ctx context.Context) error

func (*TestController) Options

func (c *TestController) Options(ctx context.Context) error

func (*TestController) Path

func (c *TestController) Path() string

func (*TestController) Read

func (c *TestController) Read(id string, ctx context.Context) error

func (*TestController) ReadMany

func (c *TestController) ReadMany(ctx context.Context) error

func (*TestController) Replace

func (c *TestController) Replace(id string, ctx context.Context) error

func (*TestController) Update

func (c *TestController) Update(id string, ctx context.Context) error

func (*TestController) UpdateMany

func (c *TestController) UpdateMany(ctx context.Context) error

type TestHandlerWithBeforeAndAfters

type TestHandlerWithBeforeAndAfters struct {
	mock.Mock
}

func (*TestHandlerWithBeforeAndAfters) After

func (*TestHandlerWithBeforeAndAfters) Before

func (*TestHandlerWithBeforeAndAfters) Create

func (*TestHandlerWithBeforeAndAfters) Path

func (*TestHandlerWithBeforeAndAfters) Replace

type TestSemiRestfulController

type TestSemiRestfulController struct {
	mock.Mock
}

func (*TestSemiRestfulController) Create

func (*TestSemiRestfulController) Read

func (*TestSemiRestfulController) ReadMany

Jump to

Keyboard shortcuts

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