test

package
v1.32.2-hotfix.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneBlob

func CloneBlob(datum *blob.Blob) *blob.Blob

func MatchBlob added in v1.31.0

func MatchBlob(datum *blob.Blob) gomegaTypes.GomegaMatcher

func MatchBlobArray added in v1.31.0

func MatchBlobArray(datum blob.BlobArray) gomegaTypes.GomegaMatcher

func NewObjectFromBlob

func NewObjectFromBlob(datum *blob.Blob, objectFormat test.ObjectFormat) map[string]interface{}

func NewObjectFromFilter

func NewObjectFromFilter(datum *blob.Filter, objectFormat test.ObjectFormat) map[string]interface{}

func RandomBlob

func RandomBlob() *blob.Blob

func RandomBlobArray added in v1.31.0

func RandomBlobArray(minimumLength int, maximumLength int) blob.BlobArray

func RandomContent

func RandomContent() *blob.Content

func RandomFilter

func RandomFilter() *blob.Filter

func RandomID added in v1.29.0

func RandomID() string

func RandomStatuses

func RandomStatuses() []string

Types

type Client

type Client struct {
	ListInvocations       int
	ListInputs            []ListInput
	ListStub              func(ctx context.Context, userID string, filter *blob.Filter, pagination *page.Pagination) (blob.BlobArray, error)
	ListOutputs           []ListOutput
	ListOutput            *ListOutput
	CreateInvocations     int
	CreateInputs          []CreateInput
	CreateStub            func(ctx context.Context, userID string, content *blob.Content) (*blob.Blob, error)
	CreateOutputs         []CreateOutput
	CreateOutput          *CreateOutput
	DeleteAllInvocations  int
	DeleteAllInputs       []string
	DeleteAllStub         func(ctx context.Context, id string) error
	DeleteAllOutputs      []error
	DeleteAllOutput       *error
	GetInvocations        int
	GetInputs             []string
	GetStub               func(ctx context.Context, id string) (*blob.Blob, error)
	GetOutputs            []GetOutput
	GetOutput             *GetOutput
	GetContentInvocations int
	GetContentInputs      []string
	GetContentStub        func(ctx context.Context, id string) (*blob.Content, error)
	GetContentOutputs     []GetContentOutput
	GetContentOutput      *GetContentOutput
	DeleteInvocations     int
	DeleteInputs          []DeleteInput
	DeleteStub            func(ctx context.Context, id string, condition *request.Condition) (bool, error)
	DeleteOutputs         []DeleteOutput
	DeleteOutput          *DeleteOutput
}

func NewClient

func NewClient() *Client

func (*Client) AssertOutputsEmpty

func (c *Client) AssertOutputsEmpty()

func (*Client) Create

func (c *Client) Create(ctx context.Context, userID string, content *blob.Content) (*blob.Blob, error)

func (*Client) Delete

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

func (*Client) DeleteAll added in v1.31.0

func (c *Client) DeleteAll(ctx context.Context, userID string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (*blob.Blob, error)

func (*Client) GetContent

func (c *Client) GetContent(ctx context.Context, id string) (*blob.Content, error)

func (*Client) List

func (c *Client) List(ctx context.Context, userID string, filter *blob.Filter, pagination *page.Pagination) (blob.BlobArray, error)

type CreateInput

type CreateInput struct {
	UserID  string
	Content *blob.Content
}

type CreateOutput

type CreateOutput struct {
	Blob  *blob.Blob
	Error error
}

type DeleteInput

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

type DeleteOutput

type DeleteOutput struct {
	Deleted bool
	Error   error
}

type GetContentOutput

type GetContentOutput struct {
	Content *blob.Content
	Error   error
}

type GetOutput

type GetOutput struct {
	Blob  *blob.Blob
	Error error
}

type ListInput

type ListInput struct {
	UserID     string
	Filter     *blob.Filter
	Pagination *page.Pagination
}

type ListOutput

type ListOutput struct {
	BlobArray blob.BlobArray
	Error     error
}

Jump to

Keyboard shortcuts

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