Ethanol's blog

Nhật ký rượu chè

0%

Abstract

There are some processes nested with complex conditional branches. Now you need to be able to fully cover and test program work correctly.

1
2
3
Sequence 1: Condition1 -> Condition2 -> Condition3 -> Condition4 -> Handler1
Sequence 2: Condition1 -> Condition2 -> Condition3 -> Condition5 -> Handler1
Sequence 3: Condition1 -> Condition2 -> Condition7 -> Condition4 -> Handler1

Note: Each condition is encapsulated into a separate function, and these execution branches execute only one at a time.

Read more »