Skip to content

Commit edbebb2

Browse files
Merge pull request codecov#83 from codecov/test-critical-paths
testing critical paths
2 parents 0e76edc + 4fa7425 commit edbebb2

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

app/calculator.py

+6
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ def divide(x, y):
1212
if y == 0:
1313
return 'Cannot divide by 0'
1414
return x * 1.0 / y
15+
16+
def power(x, y):
17+
return x**y
18+
19+
def one():
20+
return 1

app/smiles.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Smiles:
2+
def smiley():
3+
return ":)"

app/test_calculator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_multiply():
2424
assert Calculator.multiply(-4, 2.0) == -8.0
2525

2626
def test_divide():
27-
assert Calculator.divide(1, 2) == 0.5
27+
# assert Calculator.divide(1, 2) == 0.5
2828
assert Calculator.divide(1.0, 2.0) == 0.5
2929
assert Calculator.divide(0, 2.0) == 0
3030
assert Calculator.divide(-4, 2.0) == -2.0

codecov.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
profiling:
2+
critical_files_paths:
3+
- app/calculator.py

0 commit comments

Comments
 (0)