cordx56/rustowl

Visualize ownership and lifetimes in tests.

Closed this issue · 2 comments

What is the problem you're trying to solve

Currently, the lifetimes do not show for #[test] functions or #[cfg(test)] modules.

Describe the solution you'd like

test code work the same as non test code.

Additional context

As a workaround, commenting out #[test] and #[cfg(test)] works.

RustOwl uses compile result of workspace by using cargo check.
So if you would like to check #[cfg(...)], the cfg should be ON.
Currently, we cannot specify these options.

Done. It will be able to use in next release.

Image