Hi.
An issue I have run into a few times is that when mocking an associated or global function, the context itself is global. this means that tests need to be serialized (I tend to use serialize_test) so that tests running in parallel do not modify mock state of other running tests. Would adding a context_tl where the state is stored using thread_local be an acceptable extension to the library?
Hi.
An issue I have run into a few times is that when mocking an associated or global function, the context itself is global. this means that tests need to be serialized (I tend to use serialize_test) so that tests running in parallel do not modify mock state of other running tests. Would adding a
context_tlwhere the state is stored using thread_local be an acceptable extension to the library?