assert

package
v0.0.645 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 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 any, key string)

func MatchesJSONBytes

func MatchesJSONBytes(t assert.TestingT, object any, expectedJSON []byte)

func MatchesJSONMap

func MatchesJSONMap(t assert.TestingT, object any, expectedJSON map[string]any)

func MatchesJSONString

func MatchesJSONString(t assert.TestingT, object any, 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 any) string

FailureMessage (actual interface{}) (message string)

func (BeDir) Match added in v0.0.516

func (m BeDir) Match(actual any) (bool, error)

func (BeDir) NegatedFailureMessage added in v0.0.516

func (m BeDir) NegatedFailureMessage(actual any) 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 any) string

func (MatchPath) Match

func (m MatchPath) Match(actual any) (bool, error)

func (MatchPath) NegatedFailureMessage

func (m MatchPath) NegatedFailureMessage(actual any) string

Jump to

Keyboard shortcuts

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