Option C Tools
Loading...
Searching...
No Matches
dbg_without_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_without_func.py
4
5"""
6Purpose
7-------
8Fixture demonstrating missing func = "..." pattern before _dbg() calls.
9This file should fail the linter's func-pattern check.
10
11Responsibilities
12----------------
13- Provide a non-compliant example for func-pattern linter tests.
14
15Diagnostics
16-----------
17Domain: TEST
18L2: lifecycle events
19L3: semantic details
20L4: deep tracing
21
22Contracts
23---------
24Inputs: none
25Outputs: none
26"""
27
28from oc_diagnostics import _dbg
29
30
31def process():
32 # func = "..." is missing — passes the string inline instead
33 _dbg("L3", "Starting process", domain="TEST", func="process")
34 return True
35
36
37def helper():
38 # func = "..." is missing — passes the string inline instead
39 _dbg("L4", "Helper called", domain="TEST", func="helper")
40 return None