Option C Tools
Loading...
Searching...
No Matches
missing_func_pattern.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
# oct/tests/tests_formatter/fixtures/missing_func_pattern.py
4
5
"""
6
Purpose
7
-------
8
Test module.
9
10
Responsibilities
11
----------------
12
- Test func pattern.
13
14
Diagnostics
15
-----------
16
Domain: TEST
17
Levels:
18
L2 — lifecycle
19
L3 — semantic
20
L4 — tracing
21
22
Contracts
23
---------
24
- Functions with _dbg() must have func = "..." pattern.
25
"""
26
27
from
oc_diagnostics
import
_dbg
28
29
30
def
my_function
():
31
"""My function."""
32
_dbg(
"TEST"
,
"Processing"
)
33
print(
"Hello"
)
34
35
36
def
another_func
():
37
"""Another function."""
38
_dbg(
"TEST"
,
"Start"
)
39
return
42
missing_func_pattern.my_function
my_function()
Definition
missing_func_pattern.py:30
missing_func_pattern.another_func
another_func()
Definition
missing_func_pattern.py:36
tests
tests_formatter
fixtures
missing_func_pattern.py
Generated by
1.15.0