-
Notifications
You must be signed in to change notification settings - Fork 37
/
interrogate_example.py
32 lines (27 loc) · 2.86 KB
/
interrogate_example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Math:
def __init__(self, num) -> None:
self.num = num
def plus_two(self):
"""Add 2"""
return self.num + 2
def multiply_three(self):
return self.num * 3
"""
$ interrogate -vv -i interrogate_example.py
======================================= Coverage for /Users/khuyen/Python-data-science-code-snippet/code_snippets/cool_tools/ ========================================
------------------------------------------------------------------------- Detailed Coverage --------------------------------------------------------------------------
| Name | Status |
|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------|
| interrogate_example.py (module) | MISSED |
| MathOperation (L1) | MISSED |
| MathOperation.plus_two (L5) | COVERED |
| MathOperation.multiply_three (L9) | MISSED |
|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------|
------------------------------------------------------------------------------ Summary -------------------------------------------------------------------------------
| Name | Total | Miss | Cover | Cover% |
|------------------------------------------------|----------------------------|---------------------------|----------------------------|-----------------------------|
| interrogate_example.py | 4 | 3 | 1 | 25% |
|------------------------------------------------|----------------------------|---------------------------|----------------------------|-----------------------------|
| TOTAL | 4 | 3 | 1 | 25.0% |
----------------------------------------------------------- RESULT: FAILED (minimum: 80.0%, actual: 25.0%) -----------------------------------------------------------
"""