Completed
Pull Request — master (#34)
by Wojtek
01:41
created

function()   A

Complexity

Conditions 3

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
cc 3
crap 3
1
"""A sample module."""
2
3
4 1
class Class(object):
5
    """A sample class."""
6
7
8 1
def function(value):
9
    """A function with branches to demonstrate branch coverage reporting."""
10 1
    if value is True:
11 1
        return 'True'
12 1
    elif value is False:
13 1
        return 'False'
14
    else:
15 1
        return 'None'
16
17
18 1
def function_with_network_stuff():
19
    """A sample function that might take a long time to test."""
20 1
    return True
21
22
23 1
def function_with_disk_stuff():
24
    """A sample function that might take a long time to test."""
25
    return False
26