Slide 20
Slide 20 text
Characterize your classes
Given enough inputs We will cover every line of our testee
Slide 20 by richargh.de from
See also https://approvaltests.com/
“AppleSauce” idea straight from https://www.digdeeproots.com/articles/on/naming-process/
AppleSauce1.Characterization.txt
1. class AppleSauce1 {
2. void handle(req, res){
3. ~~~
4. ~~~
5. if(~~~)
6. ~~~
7.
8. ~~~
9. ~~~
10. if(~~~)
11. ~~~
12.
13. ~~~
14.}
1. [foo, 42, true] => None, 2024-01-01
2. [bar, 12, false] => Almost, 2099-01-01
3. [bla, 0, null] => Finally, null
Line covered
Pattern