Orchestrata Ultimate › Tests › Reference › test_orchestrata_tools
Tests reference — tests/test_orchestrata_tools.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_orchestrata_tools.py
source · 56 tests · 668 lines
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestJSONASTLoader |
77 | Tests for JSONASTLoader. |
| method | TestJSONASTLoader.test_ast |
85 | |
| method | TestJSONASTLoader.test_load_source |
88 | |
| method | TestJSONASTLoader.test_load_test_ast |
94 | |
| class | TestASTIndex |
103 | Tests for ASTIndex lookups. |
| method | TestASTIndex.test_find_class |
111 | |
| method | TestASTIndex.test_find_method |
117 | |
| method | TestASTIndex.test_find_methods_by_name |
123 | |
| method | TestASTIndex.test_find_subclasses |
127 | |
| method | TestASTIndex.test_public_methods_excludes_private |
131 | |
| method | TestASTIndex.test_public_methods_excludes_properties |
135 | |
| method | TestASTIndex.test_public_methods_excludes_protocols |
139 | |
| method | TestASTIndex.test_find_callers |
145 | |
| method | TestASTIndex.test_largest_modules |
150 | |
| class | TestTestMatcher |
158 | Tests for TestMatcher deterministic matching. |
| method | TestTestMatcher.test_matches_found |
165 | |
| method | TestTestMatcher.test_class_exact_match_strategy |
171 | |
| method | TestTestMatcher.test_no_duplicate_test_method_pairs |
208 | |
| method | TestTestMatcher.test_coverage_matches_legacy_tool |
218 | Coverage with body-aware matching is more accurate than legacy tool. |
| method | TestTestMatcher.test_strategies_have_confidence |
247 | |
| class | TestCoverageAnalyzer |
255 | Tests for CoverageAnalyzer. |
| method | TestCoverageAnalyzer.test_report_has_gaps |
262 | |
| method | TestCoverageAnalyzer.test_coverage_percentage |
278 | |
| method | TestCoverageAnalyzer.test_class_coverage_percentage |
281 | |
| method | TestCoverageAnalyzer.test_gap_has_suggested_name |
284 | |
| method | TestCoverageAnalyzer.test_module_coverage |
288 | |
| class | TestComplexityAnalyzer |
294 | Tests for ComplexityAnalyzer. |
| method | TestComplexityAnalyzer.test_report_has_methods |
304 | |
| method | TestComplexityAnalyzer.test_avg_cyclomatic_positive |
307 | |
| method | TestComplexityAnalyzer.test_god_classes_detected |
310 | |
| method | TestComplexityAnalyzer.test_most_complex_listed |
313 | |
| class | TestClassDiagramGenerator |
320 | Tests for ClassDiagramGenerator. |
| method | TestClassDiagramGenerator.test_generate_for_class |
328 | |
| method | TestClassDiagramGenerator.test_generate_for_module |
334 | |
| method | TestClassDiagramGenerator.test_render_includes_title |
339 | |
| class | TestCodeReviewer |
346 | Tests for CodeReviewer. |
| method | TestCodeReviewer.test_review_method_finds_issues |
354 | |
| method | TestCodeReviewer.test_review_class_detects_god_class |
364 | |
| method | TestCodeReviewer.test_review_codebase_returns_reports |
371 | |
| class | TestImportGraph |
376 | Tests for ImportGraph. |
| method | TestImportGraph.test_has_modules |
384 | |
| method | TestImportGraph.test_dependencies_exist |
387 | |
| method | TestImportGraph.test_fan_in_positive |
391 | |
| method | TestImportGraph.test_dependents_symmetric |
396 | |
| class | TestCycleDetector |
402 | Tests for CycleDetector. |
| method | TestCycleDetector.test_find_cycles |
410 | |
| class | TestQueryEvaluator |
416 | Tests for QueryEvaluator. |
| method | TestQueryEvaluator.test_query_classes |
423 | |
| method | TestQueryEvaluator.test_query_methods_untested |
429 | |
| method | TestQueryEvaluator.test_query_modules_by_size |
434 | |
| class | TestStubGenerator |
440 | Tests for StubGenerator. |
| method | TestStubGenerator.test_generate_stub |
455 | |
| method | TestStubGenerator.test_stub_includes_class_instantiation |
464 | |
| class | TestInterfaceTestGenerator |
471 | Tests for InterfaceTestGenerator. |
| method | TestInterfaceTestGenerator.test_generate_for_protocol |
478 | |
| method | TestInterfaceTestGenerator.test_generate_for_abc |
488 | |
| class | TestBranchTestGenerator |
498 | Tests for BranchTestGenerator. |
| method | TestBranchTestGenerator.test_branches_from_docstring |
505 | |
| method | TestBranchTestGenerator.test_generate_for_method |
523 | |
| class | TestBehavioralTestGenerator |
543 | Tests for BehavioralTestGenerator. |
| method | TestBehavioralTestGenerator.test_generate_from_docstring |
550 | |
| class | TestCombinedTestGenerator |
572 | Tests for CombinedTestGenerator. |
| method | TestCombinedTestGenerator.test_generate_for_method |
579 | |
| method | TestCombinedTestGenerator.test_generate_for_gaps |
587 | |
| class | TestEnvCollector |
595 | Tests for EnvCollector. |
| method | TestEnvCollector.test_collect |
598 | |
| class | TestConfigCollector |
606 | Tests for ConfigCollector. |
| method | TestConfigCollector.test_collect |
609 | |
| class | TestDependencySummarizer |
619 | Tests for DependencySummarizer. |
| method | TestDependencySummarizer.test_summarize |
622 | |
| class | TestProjectContextBuilder |
634 | Tests for ProjectContextBuilder. |
| method | TestProjectContextBuilder.test_build |
637 | |
| method | TestProjectContextBuilder.test_to_markdown |
645 | |
| class | TestPromptBuilder |
654 | Tests for PromptBuilder. |
| method | TestPromptBuilder.test_code_review_prompt |
657 | |
| method | TestPromptBuilder.test_architecture_prompt |
664 |