php-school / cli-menu

🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
http://www.phpschool.io
MIT License
1.94k stars 106 forks source link

Adds RadioItem and ToggableTrait #194

Closed jtreminio closed 4 years ago

jtreminio commented 4 years ago

Missing fancy screenshot.

Also adds SpliItemTest::testCheckableItem()

codecov-io commented 4 years ago

Codecov Report

Merging #194 into master will decrease coverage by 0.11%. The diff coverage is 86.27%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #194      +/-   ##
============================================
- Coverage      93.2%   93.08%   -0.12%     
- Complexity      491      516      +25     
============================================
  Files            27       29       +2     
  Lines          1486     1562      +76     
============================================
+ Hits           1385     1454      +69     
- Misses          101      108       +7
Impacted Files Coverage Δ Complexity Δ
src/MenuItem/CheckableItem.php 100% <ø> (+8.33%) 9 <0> (-10) :arrow_down:
src/CliMenu.php 90.39% <0%> (-2.65%) 109 <4> (+4)
src/MenuItem/RadioItem.php 100% <100%> (ø) 10 <10> (?)
src/Builder/SplitItemBuilder.php 78.04% <100%> (+1.73%) 12 <1> (+1) :arrow_up:
src/MenuItem/ToggableTrait.php 100% <100%> (ø) 11 <11> (?)
src/MenuStyle.php 97.27% <100%> (+0.13%) 78 <4> (+4) :arrow_up:
src/MenuItem/SplitItem.php 100% <100%> (+2.32%) 47 <0> (+2) :arrow_up:
src/Builder/CliMenuBuilder.php 81.9% <33.33%> (-2.18%) 70 <3> (+3)

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 867de8a...ca2712d. Read the comment docs.