Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit edbebb2

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

File tree

Expand file treeCollapse file tree

4 files changed

+13
-1
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+13
-1
lines changed

‎app/calculator.py

Copy file name to clipboardExpand all lines: app/calculator.py
+6Lines 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

Copy file name to clipboard
+3Lines 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

Copy file name to clipboardExpand all lines: app/test_calculator.py
+1-1Lines 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

Copy file name to clipboard
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.