sebastianbergmann / diff

Diff implementation
BSD 3-Clause "New" or "Revised" License
7.58k stars 85 forks source link

Fix zero range. #68

Closed SpacePossum closed 7 years ago

SpacePossum commented 7 years ago

I made a little mistake when rendering the ranges in hunks. The number of effected lines may be omitted when the range is exactly one, not when zero as it would change the meaning of the range.

codecov-io commented 7 years ago

Codecov Report

Merging #68 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #68   +/-   ##
=========================================
  Coverage     99.74%   99.74%           
  Complexity      150      150           
=========================================
  Files            10       10           
  Lines           397      397           
=========================================
  Hits            396      396           
  Misses            1        1
Impacted Files Coverage Δ Complexity Δ
src/Output/UnifiedDiffOutputBuilder.php 100% <100%> (ø) 26 <0> (ø) :arrow_down:

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 347c1d8...bdf6e1f. Read the comment docs.

codecov-io commented 7 years ago

Codecov Report

Merging #68 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #68   +/-   ##
=========================================
  Coverage     99.74%   99.74%           
  Complexity      150      150           
=========================================
  Files            10       10           
  Lines           397      397           
=========================================
  Hits            396      396           
  Misses            1        1
Impacted Files Coverage Δ Complexity Δ
src/Output/UnifiedDiffOutputBuilder.php 100% <100%> (ø) 26 <0> (ø) :arrow_down:

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 347c1d8...bdf6e1f. Read the comment docs.