fixtures

package
v0.0.0-...-c4d280c Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(t *testing.T, test Case, subject *web.Router)

Types

type Case

type Case struct {
	Name           string
	Method         string
	URL            string
	User           string //Authorization header value
	ReqBody        string
	ExpectedBody   string
	ExpectedStatus int
}

type FuzzerPS

type FuzzerPS struct {
	crudinator.PersistentStore
}

func (*FuzzerPS) Get

func (fps *FuzzerPS) Get(key interface{}, tableName string, dst interface{}) error

func (*FuzzerPS) List

func (fps *FuzzerPS) List(tableName string, filters map[string]interface{}, dst interface{}) error

func (*FuzzerPS) Session

func (fps *FuzzerPS) Session() crudinator.PersistentStore

func (*FuzzerPS) Set

func (fps *FuzzerPS) Set(key interface{}, tablename string, value interface{}) error

type MockRW

type MockRW struct {
	bytes.Buffer
	// contains filtered or unexported fields
}

func (*MockRW) Header

func (rw *MockRW) Header() http.Header

func (*MockRW) WriteHeader

func (rw *MockRW) WriteHeader(status int)

type NopPS

type NopPS struct{ crudinator.PersistentStore }

Jump to

Keyboard shortcuts

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