Coverage report: 51%

Files Functions Classes

coverage.py v7.12.0, created at 2025-11-30 09:36 +0100

File function   statements missing excluded   coverage
app \ __init__.py (no function)   1 0 0   100%
app \ api \ __init__.py (no function)   0 0 0   100%
app \ automata \ __init__.py (no function)   7 0 0   100%
app \ automata \ ast_fixer.py ASTFixer.__init__   1 0 0   100%
app \ automata \ ast_fixer.py ASTFixer.can_handle   1 0 0   100%
app \ automata \ ast_fixer.py ASTFixer.execute   23 7 0   70%
app \ automata \ ast_fixer.py ASTFixer._attempt_fix   12 4 0   67%
app \ automata \ ast_fixer.py ASTFixer._fix_missing_colon   10 2 0   80%
app \ automata \ ast_fixer.py ASTFixer._fix_indentation   10 10 0   0%
app \ automata \ ast_fixer.py ASTFixer._fix_parentheses   12 12 0   0%
app \ automata \ ast_fixer.py (no function)   15 0 0   100%
app \ automata \ base.py BaseAutomaton.__init__   2 0 0   100%
app \ automata \ base.py BaseAutomaton.can_handle   1 1 0   0%
app \ automata \ base.py BaseAutomaton.execute   1 1 0   0%
app \ automata \ base.py BaseAutomaton._format_result   1 0 0   100%
app \ automata \ base.py (no function)   12 0 0   100%
app \ automata \ formatter.py PythonFormatter.__init__   9 2 0   78%
app \ automata \ formatter.py PythonFormatter.can_handle   1 0 0   100%
app \ automata \ formatter.py PythonFormatter.execute   11 2 0   82%
app \ automata \ formatter.py (no function)   9 0 0   100%
app \ automata \ linter.py PythonLinter.__init__   2 0 0   100%
app \ automata \ linter.py PythonLinter._check_ruff   8 3 0   62%
app \ automata \ linter.py PythonLinter.can_handle   1 0 0   100%
app \ automata \ linter.py PythonLinter.execute   26 9 0   65%
app \ automata \ linter.py (no function)   14 0 0   100%
app \ automata \ runtime_fixer.py RuntimeFixer.__init__   1 0 0   100%
app \ automata \ runtime_fixer.py RuntimeFixer.can_handle   1 0 0   100%
app \ automata \ runtime_fixer.py RuntimeFixer.execute   17 15 0   12%
app \ automata \ runtime_fixer.py RuntimeFixer._identify_error_type   5 5 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_zero_division   30 30 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_zero_division.DivisionFixer.__init__   1 1 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_zero_division.DivisionFixer.visit_BinOp   8 8 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_name_error   23 23 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_name_error.NameCollector.visit_Name   2 2 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_name_error.NameCollector.visit_FunctionDef   3 3 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_index_error   22 22 0   0%
app \ automata \ runtime_fixer.py RuntimeFixer._fix_syntax_error   21 21 0   0%
app \ automata \ runtime_fixer.py (no function)   17 0 0   100%
app \ automata \ test_generator.py TestTemplateGenerator.__init__   2 0 0   100%
app \ automata \ test_generator.py TestTemplateGenerator.can_handle   1 0 0   100%
app \ automata \ test_generator.py TestTemplateGenerator.execute   10 4 0   60%
app \ automata \ test_generator.py TestTemplateGenerator._extract_entities   16 7 0   56%
app \ automata \ test_generator.py TestTemplateGenerator._python_template   7 0 0   100%
app \ automata \ test_generator.py TestTemplateGenerator._javascript_template   4 4 0   0%
app \ automata \ test_generator.py (no function)   13 0 0   100%
app \ automata \ trace_parser.py TraceParser.__init__   2 0 0   100%
app \ automata \ trace_parser.py TraceParser.can_handle   1 0 0   100%
app \ automata \ trace_parser.py TraceParser.execute   13 5 0   62%
app \ automata \ trace_parser.py TraceParser._detect_language   5 3 0   40%
app \ automata \ trace_parser.py TraceParser._extract_info   16 4 0   75%
app \ automata \ trace_parser.py TraceParser._build_explanation   10 2 0   80%
app \ automata \ trace_parser.py TraceParser._get_suggestions   19 12 0   37%
app \ automata \ trace_parser.py (no function)   14 0 0   100%
app \ config.py Settings.__init__   4 0 0   100%
app \ config.py Settings.starcoder_path   1 0 0   100%
app \ config.py Settings.codet5_path   1 1 0   0%
app \ config.py (no function)   41 0 0   100%
app \ core \ __init__.py (no function)   0 0 0   100%
app \ core \ orchestrator.py Orchestrator.__init__   7 0 0   100%
app \ core \ orchestrator.py Orchestrator.initialize   15 3 0   80%
app \ core \ orchestrator.py Orchestrator._load_automata   17 2 0   88%
app \ core \ orchestrator.py Orchestrator._load_engines   2 0 0   100%
app \ core \ orchestrator.py Orchestrator._get_engine   17 8 0   53%
app \ core \ orchestrator.py Orchestrator.process   22 6 0   73%
app \ core \ orchestrator.py Orchestrator._try_automata   19 6 0   68%
app \ core \ orchestrator.py Orchestrator._use_slm   22 7 0   68%
app \ core \ orchestrator.py Orchestrator.translate   4 4 0   0%
app \ core \ orchestrator.py Orchestrator.generate_boilerplate   4 4 0   0%
app \ core \ orchestrator.py Orchestrator.get_status   1 0 0   100%
app \ core \ orchestrator.py Orchestrator.shutdown   9 2 0   78%
app \ core \ orchestrator.py (no function)   25 0 0   100%
app \ core \ pipeline.py Pipeline.__init__   1 0 0   100%
app \ core \ pipeline.py Pipeline.build   1 1 0   0%
app \ core \ pipeline.py Pipeline.execute   1 1 0   0%
app \ core \ pipeline.py (no function)   7 0 0   100%
app \ core \ router.py Router.__init__   2 0 0   100%
app \ core \ router.py Router.initialize   3 0 0   100%
app \ core \ router.py Router.route   23 5 0   78%
app \ core \ router.py Router._calculate_confidence   1 1 0   0%
app \ core \ router.py (no function)   9 0 0   100%
app \ engines \ __init__.py (no function)   4 0 0   100%
app \ engines \ base.py BaseEngine.__init__   5 0 0   100%
app \ engines \ base.py BaseEngine.initialize   1 1 0   0%
app \ engines \ base.py BaseEngine.process   1 1 0   0%
app \ engines \ base.py BaseEngine.shutdown   1 1 0   0%
app \ engines \ base.py BaseEngine.build_prompt   13 13 0   0%
app \ engines \ base.py BaseEngine.get_stop_tokens   3 3 0   0%
app \ engines \ base.py BaseEngine._build_fix_prompt   6 6 0   0%
app \ engines \ base.py BaseEngine._build_explain_prompt   6 6 0   0%
app \ engines \ base.py BaseEngine._build_refactor_prompt   6 6 0   0%
app \ engines \ base.py BaseEngine._build_test_prompt   6 6 0   0%
app \ engines \ base.py BaseEngine._build_translate_prompt   6 6 0   0%
app \ engines \ base.py BaseEngine._build_boilerplate_prompt   6 6 0   0%
app \ engines \ base.py BaseEngine._default_prompt   1 1 0   0%
app \ engines \ base.py BaseEngine._format_result   1 0 0   100%
app \ engines \ base.py BaseEngine._extract_code_from_response   13 13 0   0%
app \ engines \ base.py (no function)   24 0 0   100%
app \ engines \ codet5.py CodeT5Engine.__init__   4 4 0   0%
app \ engines \ codet5.py CodeT5Engine.initialize   24 24 0   0%
app \ engines \ codet5.py CodeT5Engine.process   20 20 0   0%
app \ engines \ codet5.py CodeT5Engine._build_codet5_prompt   16 16 0   0%
app \ engines \ codet5.py CodeT5Engine._get_explanation_suggestions   1 1 0   0%
app \ engines \ codet5.py CodeT5Engine.shutdown   11 11 0   0%
app \ engines \ codet5.py (no function)   15 0 0   100%
app \ engines \ starcoder.py StarCoderEngine.__init__   2 0 0   100%
app \ engines \ starcoder.py StarCoderEngine.initialize   14 6 0   57%
app \ engines \ starcoder.py StarCoderEngine.process   23 10 0   57%
app \ engines \ starcoder.py StarCoderEngine._build_prompt   14 1 0   93%
app \ engines \ starcoder.py StarCoderEngine._extract_code_from_response   7 1 0   86%
app \ engines \ starcoder.py StarCoderEngine._extract_explanation   4 1 0   75%
app \ engines \ starcoder.py StarCoderEngine._generate_suggestions   2 0 0   100%
app \ engines \ starcoder.py StarCoderEngine.shutdown   4 0 0   100%
app \ engines \ starcoder.py (no function)   18 0 0   100%
app \ main.py lifespan   12 12 0   0%
app \ main.py root   1 1 0   0%
app \ main.py health_check   4 1 0   75%
app \ main.py process_query   9 4 0   56%
app \ main.py translate_code   8 8 0   0%
app \ main.py generate_boilerplate   8 8 0   0%
app \ main.py log_feedback   10 10 0   0%
app \ main.py global_exception_handler   2 2 0   0%
app \ main.py (no function)   35 2 0   94%
app \ models \ __init__.py (no function)   0 0 0   100%
app \ models \ schemas.py (no function)   74 0 0   100%
app \ rag \ __init__.py (no function)   4 0 0   100%
app \ rag \ embedder.py CodeEmbedder.__init__   2 0 0   100%
app \ rag \ embedder.py CodeEmbedder.initialize   10 4 0   60%
app \ rag \ embedder.py CodeEmbedder.embed   10 5 0   50%
app \ rag \ embedder.py CodeEmbedder.embed_batch   9 9 0   0%
app \ rag \ embedder.py (no function)   9 0 0   100%
app \ rag \ retriever.py CodeRetriever.__init__   3 0 0   100%
app \ rag \ retriever.py CodeRetriever.initialize   11 4 0   64%
app \ rag \ retriever.py CodeRetriever.add_examples   14 14 0   0%
app \ rag \ retriever.py CodeRetriever.retrieve   21 4 0   81%
app \ rag \ retriever.py CodeRetriever.save   2 2 0   0%
app \ rag \ retriever.py CodeRetriever.clear   2 2 0   0%
app \ rag \ retriever.py CodeRetriever.build_context   12 0 0   100%
app \ rag \ retriever.py (no function)   15 0 0   100%
app \ rag \ vector_store.py VectorStore.__init__   4 0 0   100%
app \ rag \ vector_store.py VectorStore.initialize   17 7 0   59%
app \ rag \ vector_store.py VectorStore.add   10 10 0   0%
app \ rag \ vector_store.py VectorStore.search   14 4 0   71%
app \ rag \ vector_store.py VectorStore.save   14 14 0   0%
app \ rag \ vector_store.py VectorStore.clear   4 4 0   0%
app \ rag \ vector_store.py (no function)   13 0 0   100%
app \ sandbox \ __init__.py (no function)   2 2 0   0%
app \ sandbox \ executor.py CodeExecutor.__init__   1 1 0   0%
app \ sandbox \ executor.py CodeExecutor._check_docker   8 8 0   0%
app \ sandbox \ executor.py CodeExecutor.execute   28 28 0   0%
app \ sandbox \ executor.py CodeExecutor._build_docker_command   8 8 0   0%
app \ sandbox \ executor.py CodeExecutor._get_extension   2 2 0   0%
app \ sandbox \ executor.py CodeExecutor.test_code   15 15 0   0%
app \ sandbox \ executor.py (no function)   18 18 0   0%
app \ storage \ __init__.py (no function)   3 0 0   100%
app \ storage \ analyzer.py PatternAnalyzer.__init__   4 4 0   0%
app \ storage \ analyzer.py PatternAnalyzer.identify_automatable_patterns   10 10 0   0%
app \ storage \ analyzer.py PatternAnalyzer._calculate_automation_potential   15 15 0   0%
app \ storage \ analyzer.py PatternAnalyzer._estimate_complexity   9 9 0   0%
app \ storage \ analyzer.py PatternAnalyzer.generate_automaton_template   5 5 0   0%
app \ storage \ analyzer.py PatternAnalyzer._generate_class_name   5 5 0   0%
app \ storage \ analyzer.py PatternAnalyzer._to_snake_case   2 2 0   0%
app \ storage \ analyzer.py PatternAnalyzer.export_candidates_report   3 3 0   0%
app \ storage \ analyzer.py (no function)   16 0 0   100%
app \ storage \ feedback.py FeedbackLogger.__init__   2 2 0   0%
app \ storage \ feedback.py FeedbackLogger._ensure_db   11 11 0   0%
app \ storage \ feedback.py FeedbackLogger.log_feedback   15 15 0   0%
app \ storage \ feedback.py FeedbackLogger.get_unprocessed_feedback   11 11 0   0%
app \ storage \ feedback.py FeedbackLogger.mark_feedback_as_processed   13 13 0   0%
app \ storage \ feedback.py (no function)   13 0 0   100%
app \ storage \ logger.py get_logger   1 0 0   100%
app \ storage \ logger.py UsageLogger.__init__   2 2 0   0%
app \ storage \ logger.py UsageLogger._ensure_db   13 13 0   0%
app \ storage \ logger.py UsageLogger.log_request   11 11 0   0%
app \ storage \ logger.py UsageLogger.update_pattern_frequency   8 8 0   0%
app \ storage \ logger.py UsageLogger.get_frequent_patterns   11 11 0   0%
app \ storage \ logger.py UsageLogger.get_stats   16 16 0   0%
app \ storage \ logger.py (no function)   16 0 0   100%
app \ utils \ localization.py load_translations   17 9 0   47%
app \ utils \ localization.py get_string   8 4 0   50%
app \ utils \ localization.py (no function)   10 0 0   100%
Total     1710 831 0   51%

No items found using the specified filter.