Skip to content

Allow setproperty! for PointerWrappers with special structs#79

Merged
ranocha merged 3 commits intotrixi-framework:mainfrom
JoshuaLampert:pw_setproperty
Apr 16, 2023
Merged

Allow setproperty! for PointerWrappers with special structs#79
ranocha merged 3 commits intotrixi-framework:mainfrom
JoshuaLampert:pw_setproperty

Conversation

@JoshuaLampert
Copy link
Member

As discussed in #77 this adds the functionality to set properties also for structs as in #72 using the same approach like #74.

@JoshuaLampert JoshuaLampert requested review from ranocha and sloede April 11, 2023 17:54
@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Merging #79 (a295fa1) into main (a8b4c30) will increase coverage by 0.20%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   15.70%   15.90%   +0.20%     
==========================================
  Files           3        3              
  Lines        1516     1516              
==========================================
+ Hits          238      241       +3     
+ Misses       1278     1275       -3     
Flag Coverage Δ
unittests 15.90% <100.00%> (+0.20%) ⬆️

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

Impacted Files Coverage Δ
src/pointerwrappers.jl 95.45% <100.00%> (+4.55%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small comment, otherwise this LGTM!

Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you please add a test of the new functionality?

@JoshuaLampert
Copy link
Member Author

Do you think of an additional test than the ones I already added? If so, what kind of test were you thinking of?

Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@ranocha ranocha merged commit e3522da into trixi-framework:main Apr 16, 2023
@JoshuaLampert JoshuaLampert deleted the pw_setproperty branch April 16, 2023 15:23
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.

3 participants