Tautology triage
tautology_triage
Triage for tautology findings.
Implements the v4 decision tree steps that decide whether a tautology finding should be deleted or strengthened. Both the delete-side steps and the full STRENGTHEN-side tree (steps 2/3/4/4b/4c/4d/4e/4f) are ported here.
Verdict
dataclass
Result of triaging one tautology finding.
Source code in packages/axm-audit/src/axm_audit/core/rules/test_quality/tautology_triage.py
decision
property
Alias for :attr:action (triage decision).
step
property
Alias for :attr:rule (triage step that fired).
verdict
property
Alias for :attr:action (triage verdict).
triage(finding, *, tree, func, enclosing_class, helpers, pkg_symbols, contracts, test_file, source_text='')
Return the verdict for finding inside func.
Source code in packages/axm-audit/src/axm_audit/core/rules/test_quality/tautology_triage.py
| Python | |
|---|---|
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 | |