Test branch coverage for a function with conditional branches
Preconditions (2)
Step 1: Create a function that returns 'Positive' if input is greater than 0, 'Zero' if input is 0, and 'Negative' if input is less than 0
Step 2: Write test cases to cover all branches of the function
Step 3: Run pytest with coverage to verify branch coverage
✅ Expected Result: All branches of the function are executed and verified by tests, resulting in 100% branch coverage