DEV Community

loading...

Discussion on: Do you unit test private methods?

Collapse
jessekphillips profile image
Jesse Phillips

My evaluation would include what the function does and what I would test for.

Yes I would look to test internal functions. Does the function take inputs and provide output based solely on that? Test it. Does it have external dependencies, requires a large interconnected object state, probably not then.