klauer / blark

Beckhoff TwinCAT ST (IEC 61131-3) code parsing in Python using Lark (Earley)
https://klauer.github.io/blark/
GNU General Public License v2.0
42 stars 5 forks source link

Unused grammar rule clean-up and grammar coverage tests #86

Closed klauer closed 9 months ago

klauer commented 9 months ago

(This is part of a larger branch which got to be unmanageably large - breaking it up into separate PRs)

Fixes:

Clean-up:

Test suite:

codecov-commenter commented 9 months ago

Codecov Report

Merging #86 (58f5bc6) into master (16498b7) will increase coverage by 0.1%. The diff coverage is 94.7%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #86     +/-   ##
========================================
+ Coverage    80.7%   80.8%   +0.1%     
========================================
  Files          26      26             
  Lines        5510    5559     +49     
========================================
+ Hits         4447    4493     +46     
- Misses       1063    1066      +3     
Files Coverage Δ
blark/tests/test_transformer.py 94.7% <100.0%> (+1.2%) :arrow_up:
blark/transform.py 98.9% <100.0%> (+<0.1%) :arrow_up:
blark/util.py 83.8% <81.2%> (-0.2%) :arrow_down:

... and 1 file with indirect coverage changes