Question: Provide inputs ( you are not required to provide outputs ) to obtain the following levels of coverage in the listed code. Regardless of language
Provide inputs you are not required to provide outputs to obtain the following levels of coverage in the listed code. Regardless of language semantics, assume all conditions within each if statement are executed ie no shortcircuiting
Coverage levels required for regular credit are:
Line Coverage Only
Line and Branch Coverage Only
Conditional Coverage Only
Coverage levels to earn extra credit up to points are:
Line, Branch, Condition, and Branch & Condition Only
Line, Branch, Condition, Branch & Condition, and Multiple Condition
Code to be tested in Python is:
def funca b c:
branchcount
if a or b or c :
branchcount
if a and b and c :
branchcount
return branchcount
Note: Please submit test case inputs in a list of parenthesis eg for a b and c inputs respectively Only integers may be passed in for a b and c For example, the following format would be correct to submit however the values are not correct:
Line Coverage:
Line & Branch Coverage:
Condition Coverage:
Line, Branch, Condition, and Branch & Condition Coverage:
Line, Branch, Condition, Branch & Condition, and Multiple Condition Coverage:
If you do not submit the coverage values in this format, you will lose points.
If any coverage levels cannot be created, clearly describe why that is the case.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
