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

Lines changed: 6 additions & 0 deletions
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

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

app/test_calculator.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy