qur / withmock

Automatic Go package mock generation tool
Other
71 stars 9 forks source link

Partial mocking #7

Closed imosquera closed 10 years ago

imosquera commented 10 years ago

Is there a way to do partial mocking with the "withmock" package? If not, have you thought about an approach? I'd love to help to make this happen as I see this library as an essential piece to testing in golang. Let me know.

imosquera commented 10 years ago

I think for now thats what we'll do in order to export the private variables.

qur commented 10 years ago

It is now possible to partially mock packages other than the one under test, which is much harder without breaking the ability to use gocov to get coverage data from the code under test.