aurestverifier

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expectation

type Expectation struct {
	Request  Request
	Response ResponseOrError
	Matched  bool
}

type Request

type Request struct {
	Name   string // key for the request
	Method string
	Header http.Header // currently not tested, just supplied as documentation for now
	Url    string
	Body   interface{}
}

type ResponseOrError

type ResponseOrError struct {
	Response aurestclientapi.ParsedResponse
	Error    error
}

type VerifierImpl

type VerifierImpl struct {
	// contains filtered or unexported fields
}

func New

func (*VerifierImpl) AddExpectation

func (c *VerifierImpl) AddExpectation(requestMatcher Request, response aurestclientapi.ParsedResponse, err error)

func (*VerifierImpl) FirstUnexpectedOrNil

func (c *VerifierImpl) FirstUnexpectedOrNil() *Request

func (*VerifierImpl) Perform

func (c *VerifierImpl) Perform(ctx context.Context, method string, requestUrl string, requestBody interface{}, response *aurestclientapi.ParsedResponse) error

Jump to

Keyboard shortcuts

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