Skip to content

Conversation

@quinnj
Copy link
Member

@quinnj quinnj commented Aug 29, 2021

applyfield was inconsistent with applyfield! in that it threw an
error on non-existent fields rather than return false, which the
docuementation said it did. This fixes applyfield to ignore
non-existent fieldnames and return false. Alternative fix to adding
teh ignoreextras function proposed in #52.

`applyfield` was inconsistent with `applyfield!` in that it threw an
error on non-existent fields rather than return `false`, which the
docuementation _said_ it did. This fixes `applyfield` to ignore
non-existent fieldnames and return `false`. Alternative fix to adding
teh `ignoreextras` function proposed in #52.
@quinnj quinnj mentioned this pull request Aug 29, 2021
@codecov
Copy link

codecov bot commented Aug 29, 2021

Codecov Report

Merging #63 (111cdb6) into main (dc3f601) will increase coverage by 3.46%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
+ Coverage   69.36%   72.83%   +3.46%     
==========================================
  Files           1        1              
  Lines         333      346      +13     
==========================================
+ Hits          231      252      +21     
+ Misses        102       94       -8     
Impacted Files Coverage Δ
src/StructTypes.jl 72.83% <0.00%> (+3.46%) ⬆️

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 dc3f601...111cdb6. Read the comment docs.

@quinnj quinnj merged commit a42848a into main Aug 30, 2021
@quinnj quinnj deleted the jq/fixapplyfield branch August 30, 2021 22:02
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.

2 participants