Orchestrata Ultimate › Tests › Reference › generated_recovery › test_knowledge_graph_ast_analyzer
Tests reference — tests/generated_recovery/test_knowledge_graph_ast_analyzer.py
Module of tests/generated_recovery, split out because the directory page would be too large.
Prose pending.
tests/generated_recovery/test_knowledge_graph_ast_analyzer.py
source · 11 tests · 187 lines
Auto-generated tests for: knowledge_graph.ast_analyzer
Covers: knowledge_graph.ast_analyzer
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestASTAnalyzerAnalyzeProjectBranches |
32 | Branch/exception tests for: knowledge_graph.ast_analyzer.ASTAnalyzer.analyze_project |
| method | TestASTAnalyzerAnalyzeProjectBranches.test_L53_when_not_project_is_dir_true |
59 | Line 53: condition not project.is_dir() is True. |
| method | TestASTAnalyzerAnalyzeProjectBranches.test_L53_when_not_project_is_dir_false |
69 | Line 53: condition not project.is_dir() is False. |
| method | TestASTAnalyzerAnalyzeProjectBranches.test_L67_when_source_file_suffix_not_in_exts_true |
79 | Line 67: condition source_file.suffix not in exts is True. |
| method | TestASTAnalyzerAnalyzeProjectBranches.test_L67_when_source_file_suffix_not_in_exts_false |
90 | Line 67: condition source_file.suffix not in exts is False. |
| method | TestASTAnalyzerAnalyzeProjectBranches.test_L69_when_any_part_in_ignore_for_part_in_source_fi_true |
101 | Line 69: condition any((part in ignore for part in source_file.parts)) is True. |
| method | TestASTAnalyzerAnalyzeProjectBranches.test_L69_when_any_part_in_ignore_for_part_in_source_fi_false |
111 | Line 69: condition any((part in ignore for part in source_file.parts)) is False. |
| class | TestASTAnalyzerAnalyzeFileDetailedBranches |
122 | Branch/exception tests for: knowledge_graph.ast_analyzer.ASTAnalyzer.analyze_file_detailed |
| method | TestASTAnalyzerAnalyzeFileDetailedBranches.test_L100_when_not_path_exists_or_path_suffix_py_true |
149 | Line 100: condition not path.exists() or path.suffix != '.py' is True. |
| method | TestASTAnalyzerAnalyzeFileDetailedBranches.test_L100_when_not_path_exists_or_path_suffix_py_false |
157 | Line 100: condition not path.exists() or path.suffix != '.py' is False. |
| method | TestASTAnalyzerAnalyzeFileDetailedBranches.test_handles_SyntaxError_L104 |
165 | Line 104: SyntaxError handler — suppressed. |
| method | TestASTAnalyzerAnalyzeFileDetailedBranches.test_L116_when_existing_name_class_node_name_true |
173 | Line 116: condition existing.name == class_node.name is True. |
| method | TestASTAnalyzerAnalyzeFileDetailedBranches.test_L116_when_existing_name_class_node_name_false |
181 | Line 116: condition existing.name == class_node.name is False. |