You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All good so far, and my NIF successfully uses this Elixir struct. However, the problem comes in my code test coverage (I use llvm-cov tool) where I cannot reach 100% since I can't to test Decode and Encode trait functions derived from NifStruct. I find some trouble creating a custom Env in my tests in order to test these functions (not sure if it is possible).
Is there a way to either ignore these trait definitions (probably an llvm-cov issue but still didn't find a way to do so) or even better create tests to cover these lines as well?
This discussion was converted from issue #566 on October 11, 2023 10:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all, I have the following struct created in order to bridge an
Elixir
struct with myNIF
:All good so far, and my
NIF
successfully uses this Elixir struct. However, the problem comes in my code test coverage (I usellvm-cov
tool) where I cannot reach 100% since I can't to testDecode
andEncode
trait functions derived fromNifStruct
. I find some trouble creating a customEnv
in my tests in order to test these functions (not sure if it is possible).Is there a way to either ignore these trait definitions (probably an
llvm-cov
issue but still didn't find a way to do so) or even better create tests to cover these lines as well?Beta Was this translation helpful? Give feedback.
All reactions