Attribute Macro penrose_proc::stubbed_companion_trait[][src]

Expand description

Auto derive a dummy implementation of the marked trait for use in test cases.

This is not a full blown mocking implemention, it simply allows for quickly setting default return values on trait methods you don’t need for a given test case and allows for easily testing functionality that only makes use of a handful of methods.

Wherever possible, you should always prefer breaking traits down into small, composible units instead of “mega-traits” but in the case of XConn and some of its component parts, further granularity isn’t really desirable.