function()   A
last analyzed

Complexity

Conditions 3

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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