JuliaGraphics / ColorSchemes.jl

colorschemes, colormaps, gradients, and palettes
http://juliagraphics.github.io/ColorSchemes.jl/
Other
188 stars 35 forks source link

Throw ArgumentError instead of Error for unsupported rangescale #95

Closed adrhill closed 2 years ago

adrhill commented 2 years ago

Not strictly necessary, but this makes the error more specific and testable, increasing code coverage.

codecov[bot] commented 2 years ago

Codecov Report

Merging #95 (ebcd96b) into master (597d642) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #95   +/-   ##
=======================================
  Coverage   75.00%   75.00%           
=======================================
  Files           1        1           
  Lines         116      116           
=======================================
  Hits           87       87           
  Misses         29       29           
Impacted Files Coverage Δ
src/ColorSchemes.jl 75.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 597d642...ebcd96b. Read the comment docs.

cormullion commented 2 years ago

Thanks!