Documentation ¶
Index ¶
- Variables
- func All(ms ...any) types.BeMatcher
- func Always() types.BeMatcher
- func Any(ms ...any) types.BeMatcher
- func Dive(matcher any) types.BeMatcher
- func DiveAny(matcher any) types.BeMatcher
- func DiveFirst(matcher any) types.BeMatcher
- func Eq(expected any) types.BeMatcher
- func HaveLength(args ...any) types.BeMatcher
- func Never(err error) types.BeMatcher
- func Not(expected any) types.BeMatcher
Constants ¶
This section is empty.
Variables ¶
var Ctx = be_ctx.Ctx
Ctx is an alias for be_ctx.Ctx
var HttpRequest = be_http.Request
HttpRequest is an alias for be_http.Request matcher
var JwtToken = be_jwt.Token
JwtToken is an alias for be_jwt.Token matcher
var StringAsTemplate = be_string.MatchTemplate
StringAsTemplate is an alias for be_string.MatchTemplate matcher
var URL = be_url.URL
URL is an alias for be_url.URL matcher
Functions ¶
func Dive ¶ added in v0.2.0
Dive applies the given matcher to each (every) element of the slice. Note: Dive is very close to gomega.HaveEach
func DiveAny ¶ added in v0.2.0
DiveAny applies the given matcher to each element and succeeds in case if it succeeds at least at one item
func DiveFirst ¶ added in v0.2.0
DiveFirst applies the given matcher to the first element of the given slice
func HaveLength ¶
HaveLength is like gomega.HaveLen() HaveLength succeeds if the actual value has a length that matches the provided conditions. It accepts either a count value or one or more Gomega matchers to specify the desired length conditions.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package be_ctx provides Be matchers on context.Context
|
Package be_ctx provides Be matchers on context.Context |
Package be_http provides matchers for url.Request TODO: more detailed documentation here is required
|
Package be_http provides matchers for url.Request TODO: more detailed documentation here is required |
Package be_json provides Be matchers for expressive assertions on JSON TODO: more detailed explanation what is considered to be JSON here
|
Package be_json provides Be matchers for expressive assertions on JSON TODO: more detailed explanation what is considered to be JSON here |
Package be_jwt provides Be matchers for handling JSON Web Tokens (JWT).
|
Package be_jwt provides Be matchers for handling JSON Web Tokens (JWT). |
Package be_math provides Be matchers for mathematical operations
|
Package be_math provides Be matchers for mathematical operations |
Package be_reflected provides Be matchers that use reflection, enabling expressive assertions on values' reflect kinds and types.
|
Package be_reflected provides Be matchers that use reflection, enabling expressive assertions on values' reflect kinds and types. |
Package be_string provides Be matchers for string-related assertions.
|
Package be_string provides Be matchers for string-related assertions. |
Package be_time provides Be matchers on time.Time
|
Package be_time provides Be matchers on time.Time |
Package be_url provides Be matchers on url.URL
|
Package be_url provides Be matchers on url.URL |
internal
|
|
psi
Package psi contains helpers that extends gomega library Name psi stands for previous letter from Omega (as we want to have a name that is close to gomega, but not to be a gomega)
|
Package psi contains helpers that extends gomega library Name psi stands for previous letter from Omega (as we want to have a name that is close to gomega, but not to be a gomega) |
psi_matchers
Package psi_matchers is a package that contains core matchers required Psi() to work properly
|
Package psi_matchers is a package that contains core matchers required Psi() to work properly |
reflect
Package reflect contains helpers that extends standard reflect library
|
Package reflect contains helpers that extends standard reflect library |
testing/mocks
Code generated by MockGen.
|
Code generated by MockGen. |
Package options declares options to be used in customizeable matchers Note: Options of ALL `be_*` matchers are stored here, in a separate package `options`.
|
Package options declares options to be used in customizeable matchers Note: Options of ALL `be_*` matchers are stored here, in a separate package `options`. |