Skip to content

Conversation

AydinHassan
Copy link
Member

Added a bunch of tests for padding, also uncovered a bug where the right border width was used instead of left border width!

Could you take a look please @Lynesth :)

@codecov-io
Copy link

codecov-io commented May 10, 2018

Codecov Report

Merging #122 into master will increase coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #122      +/-   ##
============================================
+ Coverage     96.95%   97.04%   +0.08%     
  Complexity      356      356              
============================================
  Files            23       23              
  Lines          1117     1117              
============================================
+ Hits           1083     1084       +1     
+ Misses           34       33       -1
Impacted Files Coverage Δ Complexity Δ
src/MenuStyle.php 96.78% <100%> (ø) 70 <0> (ø) ⬇️
src/CliMenuBuilder.php 98.39% <0%> (+0.53%) 56% <0%> (ø) ⬇️

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 e4845ac...8b2eb36. Read the comment docs.

@AydinHassan AydinHassan added this to the 3.0 milestone May 10, 2018
@@ -404,7 +404,7 @@ private function generatePaddingTopBottomRows() : void
"%s%s%s%s%s%s%s%s%s%s\n",
str_repeat(' ', $this->margin),
$borderColour,
str_repeat(' ', $this->borderRightWidth),
str_repeat(' ', $this->borderLeftWidth),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@Lynesth
Copy link
Collaborator

Lynesth commented May 11, 2018

All good to me :)

@AydinHassan AydinHassan merged commit 56635f1 into master May 11, 2018
@AydinHassan AydinHassan deleted the more-tests branch May 11, 2018 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants