Help us shape the future of Go! Take the 2026 Go Developer Survey

assert

package
v0.0.615 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 7 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 BeDir added in v0.0.516

type BeDir struct {
}

func (BeDir) FailureMessage added in v0.0.516

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

FailureMessage (actual interface{}) (message string)

func (BeDir) Match added in v0.0.516

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

func (BeDir) NegatedFailureMessage added in v0.0.516

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

NegatedFailureMessage (actual interface{}) (message string)

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