alysivji / finite-state-machine

Lightweight, decorator-based Python implementation of a Finite State Machine
MIT License
111 stars 12 forks source link

Handle transition function edge case when on_error is not set #16

Closed alysivji closed 4 years ago

alysivji commented 4 years ago

If users do not specify an on_error parameter, we want the exception to bubble up and not be suppressed.

Also improved error messages for when the start state is invalid.

codecov-commenter commented 4 years ago

Codecov Report

Merging #16 into master will increase coverage by 0.24%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   94.95%   95.20%   +0.24%     
==========================================
  Files           6        6              
  Lines         119      125       +6     
==========================================
+ Hits          113      119       +6     
  Misses          6        6              
Impacted Files Coverage Δ
finite_state_machine/state_machine.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 69e817a...b2e8d9a. Read the comment docs.