assert

package
v0.0.462 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LacksJSONKey

func LacksJSONKey(t assert.TestingT, object interface{}, key string)

func MatchesJSONBytes

func MatchesJSONBytes(t assert.TestingT, object interface{}, expectedJSON []byte)

func MatchesJSONMap

func MatchesJSONMap(t assert.TestingT, object interface{}, expectedJSON map[string]interface{})

func MatchesJSONString

func MatchesJSONString(t assert.TestingT, object interface{}, expectedJSON string)

Types

type MatchPath

type MatchPath string

MatchPath is a GomegaMatcher for filepaths, on Unix systems paths are compared unmodified. On Windows, Unix absolute paths (leading '/') are converted to Windows absolute paths using the current working directory for the volume name.

func (MatchPath) FailureMessage

func (m MatchPath) FailureMessage(actual interface{}) string

func (MatchPath) Match

func (m MatchPath) Match(actual interface{}) (bool, error)

func (MatchPath) NegatedFailureMessage

func (m MatchPath) NegatedFailureMessage(actual interface{}) string

Jump to

Keyboard shortcuts

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