Completed
Pull Request — master (#1098)
by Mischa
01:43
created

coalib.tests.bearlib.languages.documentation.documentation_extraction_testdata.foobar_explosion()   A

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 6
rs 9.4286
1
"""
2
Module description.
3
4
Some more foobar-like text.
5
"""
6
7
def foobar_explosion(radius):
8
    """
9
    A nice and neat way of documenting code.
10
    :param radius: The explosion radius.
11
    """
12
    return 55 * radius
13
14
"""
15
Docstring with layouted text.
16
17
    layouts inside docs are preserved for these documentation styles.
18
this is intended.
19
"""
20
21
""" Docstring directly besides triple quotes.
22
    Continues here. """
23
24
25
## Alternate documentation style in doxygen.
26
#  Subtext
27
# More subtext (not correctly aligned)
28
#      sub-sub-text
29
#
30
def foobar_travel(country):
31
    print("foobar likes to travel to " + country)
32
    smile = ":)"
33
    return smile
34
35
"""super
36
 nicely
37
short"""
38