- write clean code
- refactor code whenever necessary
- be able to clearly describe what it is that this module does and
exactly how it interacts with other code - no extra threads
- no swamp of global variables
- shouldn’t be a soup of references and pointers
- modules should have unit tests
- when applicable,support fault injection
- contains a large number of assertions
Creating Testable Software
最新推荐文章于 2023-04-07 00:28:43 发布