EcoJulia / NeutralLandscapes.jl

Generation of neutral landscapes in Julia.
https://ecojulia.github.io/NeutralLandscapes.jl/dev/
MIT License
16 stars 2 forks source link

add default arg constructors, and test all constructors #52

Closed rafaqz closed 3 years ago

rafaqz commented 3 years ago

What the pull request does
Adds arg constructors with defaults where there is more than one argument.

And test all constructors (please check that I got them all!!)

Type of change
Please indicate the relevant option(s)

Checklist

codecov-io commented 3 years ago

Codecov Report

Merging #52 (709e238) into main (8b84f18) will increase coverage by 27.28%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #52       +/-   ##
===========================================
+ Coverage   61.56%   88.85%   +27.28%     
===========================================
  Files          14       14               
  Lines         268      296       +28     
===========================================
+ Hits          165      263       +98     
+ Misses        103       33       -70     
Flag Coverage Δ
unittests 88.85% <100.00%> (+27.28%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/algorithms/nnelement.jl 95.23% <ø> (+0.79%) :arrow_up:
src/algorithms/nncluster.jl 100.00% <100.00%> (+100.00%) :arrow_up:
src/algorithms/perlinnoise.jl 92.06% <100.00%> (+2.40%) :arrow_up:
src/algorithms/rectangularcluster.jl 100.00% <100.00%> (ø)
src/algorithms/wavesurface.jl 100.00% <100.00%> (ø)
src/algorithms/edgegradient.jl 100.00% <0.00%> (ø)
src/algorithms/diamondsquare.jl 100.00% <0.00%> (ø)
src/algorithms/planargradient.jl 100.00% <0.00%> (ø)
... and 7 more

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 8b84f18...709e238. Read the comment docs.