pcsm / simulacrum

A small library for creating mock objects in Rust.
MIT License
26 stars 3 forks source link

Mock Objects should be cloneable #28

Closed jasongrlicky closed 6 years ago

jasongrlicky commented 6 years ago

Basically, this means getting the Expectations object clone-able, which means at least making ExpectationsT : Clone.

jasongrlicky commented 6 years ago

Closing as wontfix: Right now mock objects are thread-safe because they internally use a Mutex. Mutex doesn't implement Clone, though, which makes total sense. We'd probably have to have a totally different implementation strategy in order to make Mock Objects clone-able.