coveralls-python
2 of 7 new or added lines in 3 files covered. (28.57%)
173 existing lines in 8 files now uncovered.12263 of 16561 relevant lines covered (74.05%)
0.74 hits per line
1 |
|
|
2 |
def compute_simplifying_units(value): |
1✔ |
3 |
'''
|
|
4 |
|
|
5 |
:param value: |
|
6 |
:type value: float |
|
7 |
:return: bln, mln, k depending on how big the value is |
|
8 |
:rtype: str |
|
9 |
''' |
|
10 |
|
|
UNCOV
11
|
unit = 'count'
|
× |
12 |
|
|
UNCOV
13
|
if value > 1000000000.0: |
× |
14 |
unit = 'bln'
|
× |
UNCOV
15
|
elif value > 1000000.0: |
× |
16 |
unit = 'mln'
|
× |
UNCOV
17
|
elif value > 1000.0: |
× |
18 |
unit = 'k'
|
× |
19 |
|
|
UNCOV
20
|
return unit
|
× |