to

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeEq

func BeEq[T any](expected T) expect.GenericValueMatcher[T]

func BeFalse

func BeFalse() expect.GenericValueMatcher[bool]

func BeTrue

func StringContains

func StringContains(sub string) expect.GenericValueMatcher[string]

Types

type BeEqMatcher

type BeEqMatcher[T any] struct {
	// contains filtered or unexported fields
}

func (BeEqMatcher[T]) Error

func (it BeEqMatcher[T]) Error(current T, path string) error

func (BeEqMatcher[T]) Match

func (it BeEqMatcher[T]) Match(current T) bool

type BeFalseMatcher

type BeFalseMatcher struct {
}

func (BeFalseMatcher) Error

func (it BeFalseMatcher) Error(current bool, path string) error

func (BeFalseMatcher) Match

func (it BeFalseMatcher) Match(current bool) bool

type BeTrueMatcher

type BeTrueMatcher struct {
}

func (BeTrueMatcher) Error

func (it BeTrueMatcher) Error(current bool, path string) error

func (BeTrueMatcher) Match

func (it BeTrueMatcher) Match(current bool) bool

type StringContainsMatcher

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

func (StringContainsMatcher) Error

func (it StringContainsMatcher) Error(current string, path string) error

func (StringContainsMatcher) Match

func (it StringContainsMatcher) Match(current string) bool

Jump to

Keyboard shortcuts

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