anthonycr / Mockingbird

A minimalist faking framework exclusively for verifying interactions
MIT License
3 stars 2 forks source link

Generate functions with non unit return types, but don't allow calling them #23

Closed anthonycr closed 4 months ago

anthonycr commented 4 months ago

I don't want this to be used as a mocking library, so I don't want to return default values for non-unit functions. However, it is technically valid usage to want to verify that a function with a unit return was called, when there are other functions with non unit returns on the interface definition. Just ensuring that the functions throw an exception so that tests can't become dependent on default returns should be good enough,