tkaitchuck / constrandom

Macro to generate random constants in Rust https://xkcd.com/221/
Apache License 2.0
73 stars 14 forks source link

Code coverage tools break due to undefined symbol #28

Closed christopinka closed 1 year ago

christopinka commented 1 year ago

Code coverage both with Tarpualin (https://github.com/xd009642/tarpaulin) and intellij's grcov based instrumentation fails with

error: could not compile const-random due to 2 previous errors Jun 15 14:43:29.604 ERROR cargo_tarpaulin: Failed to compile tests! error: ../target/debug/deps/libconst_random_macro-d64f87d46f5009b3.so: undefined symbol: __getrandom_custom --> /../.cargo/registry/src/github.com-1ecc6299db9ec823/const-random-0.1.15/src/lib.rs:16:9 | 16 | pub use const_random_macro::const_random; | ^^^^^^^^^^^^^^^^^^

Error: "Failed to compile tests!\nerror: /../git-test/di-apps/target/debug/deps/libconst_random_macro-d64f87d46f5009b3.so: undefined symbol: __getrandom_custom\n --> /../.cargo/registry/src/github.com-1ecc6299db9ec823/const-random-0.1.15/src/lib.rs:16:9\n |\n16 | pub use const_random_macro::const_random;\n | ^^^^^^^^^^^^^^^^^^\n\n"

christopinka commented 1 year ago

Seems to not be problem with your project. Can run coverage fine here.