nrxus / faux

Struct mocking library for Rust
https://nrxus.github.io/faux/
MIT License
415 stars 14 forks source link

Paths in the impl block type #11

Closed nrxus closed 4 years ago

nrxus commented 4 years ago

We should support

#[faux::methods]
impl path::to::Foo {}

This one might be a bit tricky since we are using type aliases and you can't do:

type path::to::Foo = super::path:to::Foo

Making internal modules to fake the path might work...?

nrxus commented 4 years ago

Fixed in 0d3590cc377f6c784cc890d23235c98f7e856684

Paths with super and crate are still not supported, but there is the #[faux::methods(path)] workaround in the meantime.