test

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneDelete added in v1.31.0

func CloneDelete(datum *user.Delete) *user.Delete

func CloneUser added in v1.31.0

func CloneUser(datum *user.User) *user.User

func CloneUserArray added in v1.31.0

func CloneUserArray(datum user.UserArray) user.UserArray

func MatchUser added in v1.31.0

func MatchUser(datum *user.User) gomegaTypes.GomegaMatcher

func MatchUserArray added in v1.31.0

func MatchUserArray(datum user.UserArray) gomegaTypes.GomegaMatcher

func NewObjectFromDelete added in v1.31.0

func NewObjectFromDelete(datum *user.Delete, objectFormat test.ObjectFormat) map[string]interface{}

func NewObjectFromUser added in v1.31.0

func NewObjectFromUser(datum *user.User, objectFormat test.ObjectFormat) map[string]interface{}

func RandomDelete added in v1.31.0

func RandomDelete() *user.Delete

func RandomID added in v1.29.0

func RandomID() string

func RandomPassword added in v1.31.0

func RandomPassword() string

func RandomUser added in v1.31.0

func RandomUser() *user.User

func RandomUserArray added in v1.31.0

func RandomUserArray(minimumLength int, maximumLength int) user.UserArray

func RandomUsername added in v1.31.0

func RandomUsername() string

Types

type Client

type Client struct {
	GetInvocations    int
	GetInputs         []string
	GetStub           func(ctx context.Context, id string) (*user.User, error)
	GetOutputs        []GetOutput
	GetOutput         *GetOutput
	DeleteInvocations int
	DeleteInputs      []DeleteInput
	DeleteStub        func(ctx context.Context, id string, deleet *user.Delete, condition *request.Condition) (bool, error)
	DeleteOutputs     []DeleteOutput
	DeleteOutput      *DeleteOutput
}

func NewClient

func NewClient() *Client

func (*Client) AssertOutputsEmpty added in v1.27.0

func (c *Client) AssertOutputsEmpty()

func (*Client) Delete added in v1.31.0

func (c *Client) Delete(ctx context.Context, id string, deleet *user.Delete, condition *request.Condition) (bool, error)

func (*Client) Get added in v1.31.0

func (c *Client) Get(ctx context.Context, id string) (*user.User, error)

type DeleteInput added in v1.31.0

type DeleteInput struct {
	ID        string
	Delete    *user.Delete
	Condition *request.Condition
}

type DeleteOutput added in v1.31.0

type DeleteOutput struct {
	Deleted bool
	Error   error
}

type GetOutput added in v1.31.0

type GetOutput struct {
	User  *user.User
	Error error
}

Jump to

Keyboard shortcuts

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