Rewriting Private Methods As Public

Definition:

  • This anti-pattern arises when a developer is trying to increase code coverage but is not able to test all of the private methods in a class

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring