alysivji / finite-state-machine

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

Condition functions accept same arguments as transition function #21

Closed alysivji closed 4 years ago

alysivji commented 4 years ago

This will make the state machine code a little bit cleaner as we won't have to save information in our instance variables.

codecov-commenter commented 4 years ago

Codecov Report

Merging #21 into master will increase coverage by 0.58%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   95.52%   96.10%   +0.58%     
==========================================
  Files           6        7       +1     
  Lines         134      154      +20     
==========================================
+ Hits          128      148      +20     
  Misses          6        6              
Impacted Files Coverage Δ
examples/github_pull_request.py 100.00% <100.00%> (ø)
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 45fec7b...ea29221. Read the comment docs.