Status: done Priority: P2 Created: 2026-02-08 Completed: 2026-02-09 Owner: convenience-api-tester
The convenience namespace (convenience.cljc, convenience_macros.cljc) has zero test coverage despite being used in documentation examples. The send-after helper implements a non-trivial entry/exit pair with cancel logic that could harbor subtle bugs.
The namespace is marked ALPHA but appears widely used.
handle function and macroassign-on function and macroon shorthandchoice function and macro — verify correct predicate dispatchsend-after — verify entry sends delayed event, exit cancels itsrc/test/com/fulcrologic/statecharts/ - New test filesrc/main/com/fulcrologic/statecharts/convenience.cljc - Under testsrc/main/com/fulcrologic/statecharts/convenience_macros.cljc - Under teston produces correct transition elementchoice dispatches to correct target based on predicateschoice :else clause works as defaultsend-after on-entry sends delayed eventsend-after on-exit cancels the delayed eventhandle creates transition with script handlerassign-on creates transition with assignmentTest file created at src/test/com/fulcrologic/statecharts/convenience_spec.cljc with:
Can you improve this documentation?Edit 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 |