Option C Tools
Loading...
Searching...
No Matches
dbg_with_func.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oct/tests/tests_linter/fixtures/dbg_with_func.py
4
5"""
6Purpose
7-------
8Fixture demonstrating correct func = "..." pattern before _dbg() calls.
9
10Responsibilities
11----------------
12- Provide a fully compliant example for func-pattern linter tests.
13
14Diagnostics
15-----------
16Domain: TEST
17L2: lifecycle events
18L3: semantic details
19L4: deep tracing
20
21Contracts
22---------
23Inputs: none
24Outputs: none
25"""
26
27from oc_diagnostics import _dbg
28
29
30def process():
31 func = "process"
32 _dbg("L3", "Starting process", domain="TEST", func=func)
33 return True
34
35
36def helper():
37 func = "helper"
38 _dbg("L4", "Helper called", domain="TEST", func=func)
39 return None