If a code coverage tool (like Tarpaulin) doesn't show coverage for a function because the Rust compiler optimized and inlined the function, then pass the function by a pointer in a unit test. #rust #test #coverage https://github.com/datablockset/blockset/blob/main/blockset-lib/src/info/node_type_set.rs#L36