MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / HasError

Function HasError

assert.go:143–148  ·  view source on GitHub ↗

HasError checks that the observable has produce a specific error.

(err error)

Source from the content-addressed store, hash-verified

141
142// HasError checks that the observable has produce a specific error.
143func HasError(err error) RxAssert {
144 return newAssertion(func(a *rxAssert) {
145 a.checkHasRaisedError = true
146 a.err = err
147 })
148}
149
150// HasAnError checks that the observable has produce an error.
151func HasAnError() RxAssert {

Calls 1

newAssertionFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…