Configure the test module inside the module containing private methods or structures:
mod inners { fn my_func() -> u8 { 42 } mod test {
Of course, I do not agree that you should check personal things in general, but this is another discussion.
source share