Did you try the test file? I wrote it quite carefully. This doesn't pass the test. 

mod_path() doesn't show Extensions, Trait methods, or lambdas that are on the path down to the current function. mod_path() would appear to have separate use, to establish not what function you are in, but what module.