Considering the following pseudo-code, calculate the MINIMUM number of test cases required to achieve 100% statement coverage and 100% decision coverage.
I vaguely recall that we needed to ensure all branches were tested for decision coverage. I think 4 for statements and 3 for decisions sounds right, but I’m not completely confident.
I feel like I might be mixing things up, but I think decision coverage usually requires more test cases than statement coverage. Maybe 4 for statements and 5 for decisions?
I'm not entirely sure, but I think we practiced a similar question where we had to cover both statements and decisions. I want to say it was around 3 for statements and 4 for decisions.
I remember we discussed that statement coverage focuses on executing every line of code, while decision coverage checks all possible outcomes. I think we might need at least 4 test cases for full coverage.
I'm leaning towards option C as well. APIs seem like the most flexible and widely-supported way to interact with applications that aren't part of the same cloud-native ecosystem. I feel pretty confident about this one.
Noel
4 months agoOwen
4 months agoSarah
4 months agoJustine
4 months agoRodney
5 months agoDonte
5 months agoMollie
5 months agoShay
5 months agoTheola
5 months agoLouis
5 months agoJamika
5 months agoTy
5 months agoNaomi
5 months agoRossana
5 months ago