tests

package
v0.0.0-...-b7f82e1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Random = rand.New(&lockedSource{src: rand.NewSource(nowNano)})
)

Functions

func Config

func Config() *quick.Config

func ConfigFor

func ConfigFor(amount int) *quick.Config

func Del

func Del(url string, payload []byte) []byte

func Errored

func Errored(s int) bool

func Get

func Get(url string) []byte

func MustMarshal

func MustMarshal(data interface{}) []byte

func MustUnmarshal

func MustUnmarshal(bytes []byte, data interface{})

func NewRequest

func NewRequest(reqType string, url string, payload []byte) (*http.Request, error)

func Patch

func Patch(url string, payload []byte) []byte

func Post

func Post(url string, payload []byte) []byte

func Put

func Put(url string, payload []byte) []byte

func Request

func Request(reqType string, url string, payload []byte) []byte

Types

type DeleteBody

type DeleteBody []records.DeleteRecord

type PostBody

type PostBody []records.PostRecord

func (PostBody) ContainsFieldId

func (b PostBody) ContainsFieldId(id bson.ObjectId) bool

func (PostBody) DeleteBody

func (b PostBody) DeleteBody() DeleteBody

func (PostBody) Generate

func (b PostBody) Generate(rand *rand.Rand, size int) reflect.Value

func (PostBody) GetAllFieldIds

func (b PostBody) GetAllFieldIds() []bson.ObjectId

func (PostBody) GetFirstFieldId

func (b PostBody) GetFirstFieldId() bson.ObjectId

func (PostBody) GetOwnerId

func (b PostBody) GetOwnerId() bson.ObjectId

func (PostBody) Make

func (b PostBody) Make(rand *rand.Rand, size int) PostBody

func (PostBody) PutBody

func (b PostBody) PutBody() PutBody

func (PostBody) RollbackBody

func (b PostBody) RollbackBody() RollbackBody

type PutBody

type PutBody []records.PutRecord

type RandString

type RandString []string

func (RandString) Generate

func (s RandString) Generate(r *rand.Rand, size int) reflect.Value

func (RandString) String

func (s RandString) String() string

type RollbackBody

type RollbackBody []records.RollbackRecord

Jump to

Keyboard shortcuts

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