Coverage for com\automationpanda\example\calc_func.py: 100%
12 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-26 20:30 +0800
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-26 20:30 +0800
1"""
2calc_func.py contains math functions with no side effects.
3"""
6def add(a, b):
7 return a + b
10def subtract(a, b):
11 return a - b
14def multiply(a, b):
15 return a * b
18def divide(a, b):
19 # automatically raises ZeroDivisionError
20 return a * 1.0 / b
23def maximum(a, b):
24 return a if a >= b else b
27def minimum(a, b):
28 return a if a <= b else b