testutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HaveHTTPHeader added in v1.0.0

func HaveHTTPHeader(key, expected string) types.GomegaMatcher

func MustMarshalJSON added in v1.0.0

func MustMarshalJSON(v interface{}) []byte

func RunSpecs

func RunSpecs(t *testing.T, desc string)

Types

type HTTPHeaderMatcher added in v1.0.0

type HTTPHeaderMatcher struct {
	Key      string
	Expected string
}

func (*HTTPHeaderMatcher) FailureMessage added in v1.0.0

func (h *HTTPHeaderMatcher) FailureMessage(actual interface{}) (message string)

func (*HTTPHeaderMatcher) Match added in v1.0.0

func (h *HTTPHeaderMatcher) Match(actual interface{}) (bool, error)

func (*HTTPHeaderMatcher) NegatedFailureMessage added in v1.0.0

func (h *HTTPHeaderMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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