WARNING: matcher-combinators-2.0.0 includes breaking changes for edge cases. See https://github.com/nubank/matcher-combinators/blob/master/CHANGELOG.md#200
wrap-fn and with-redefs helpers #123state-flow.api/match? throws times-to-try exception a runtime instead of macro-expansion time #125
state-flow.cljtest/match? no longer throws that exception at all.state-flow.api namespace #118
fmap fnWARNING: for any code relying on previously undocumented behavior of
state-flow.assertions.matcher-combinators/match?, this release includes a
breaking change.
;; if you were doing this before in a binding
[actual (match? <expected> <step-that-produces-actual>)]
;; you can do this, now
[actual (fmap report->actual (match? <expected> <step-that-produces-actual>))]
;; or
[report (match? <expected> <step-that-produces-actual>)
:let [actual (report->actual report)]]
state-flow.assertions.matcher-combinators/match? returns a map instead of
the actual value #110
state-flow.assertions.matcher-combinators/report->actual to get the actual value if you need itstate-flow.core/run*
:on-error option (with default to log and rethrow):cleanup option to clean up after an exceptionstate-flow.core/run!
run* now has the same behavior by default (note the argument order is
switched and the initial state is passed in as a part of the option map):require [state-flow.cljtest} ...state-flow.assertions.matcher-combinators/match?
state-flow.cljtest/match?state-flow.refactoring-tools.refactor-match/refactor-all to help with
refactoring to the new version2.2.2 until a few issues are resolvedDO NOT USE VERSION 2.2.2
Changes were reintroduced in 2.2.4, so use that.
probestate-flow.state/return constructable/def'able outside monadic context.state-flow.core/run and state-flow.core/run! with default initial-state of {}state-flow.labs namespace for experimental featuresstate-flow.labs.cljtest/testingtimes-to-try default from 100 to 5 and sleep-time default from 10 to 200state-flow.state/modify to align with rest of the fn names from Haskell's State Monadstate-flow.state/swap (use modify instead)(str ...) to be a valid flow descriptionverify to from state-flow.core to the state-flow.midje namespace.match?, making it possible to tweak times-to-try and sleep-time of test probingproject.cljstate-flow.core/ftap for State pretty printing;helpers.kafka/last-consumed-messageCan you improve this documentation? These fine people already did:
David Chelimsky, Phillip Mates, ericvm, sovelten, Caio Oliveira, Thiago Kenji Okada (Nubank) & Eric VeltenEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |