Trivial docstrings under 20 chars should not become rationale nodes.
(tmp_path)
| 69 | |
| 70 | |
| 71 | def test_short_docstring_ignored(tmp_path): |
| 72 | """Trivial docstrings under 20 chars should not become rationale nodes.""" |
| 73 | path = _write_py(tmp_path, ''' |
| 74 | def foo(): |
| 75 | """Constructor.""" |
| 76 | pass |
| 77 | ''') |
| 78 | result = extract_python(path) |
| 79 | rationale = [n for n in result["nodes"] if n.get("file_type") == "rationale"] |
| 80 | assert len(rationale) == 0 |
| 81 | |
| 82 | |
| 83 | def test_rationale_confidence_is_extracted(tmp_path): |
nothing calls this directly
no test coverage detected