jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
333 stars 83 forks source link

adding default optional args to get by path routines #462

Closed jacobwilliams closed 4 years ago

jacobwilliams commented 4 years ago

Fixes #208. Adds a default optional argument to the json_get_*_by_path routines. To make it easier to set values that aren't found in file, with only one line of code.

This also consolidates some duplicated code into include files.

codecov-commenter commented 4 years ago

Codecov Report

Merging #462 into master will increase coverage by 0.35%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   89.60%   89.96%   +0.35%     
==========================================
  Files           3        6       +3     
  Lines        5369     5270      -99     
==========================================
- Hits         4811     4741      -70     
+ Misses        558      529      -29