PregoPal 测试报告

生成时间: 2026-06-09 00:40:53 | 测试框架: 内置 TestRunner

110
总用例数
110
通过
0
失败
100.0%
通过率
状态 测试类 测试方法 描述 结果 错误信息
PASS TestDRIsParser test_compare_focus_nutrients 应返回重点关注营养素列表 通过
PASS TestDRIsParser test_compare_with_intake_deficit 摄入不足时应标记 deficit 通过
PASS TestDRIsParser test_compare_with_intake_missing 缺失数据应标记 missing 通过
PASS TestDRIsParser test_compare_with_intake_sufficient 摄入充足时应标记 sufficient 通过
PASS TestDRIsParser test_format_comparison_table 对比表应包含表头和分隔线 通过
PASS TestDRIsParser test_get_rni_early 孕早期 RNI 应包含关键营养素 通过
PASS TestDRIsParser test_get_rni_lactation 哺乳期 RNI 钙需求应最高 通过
PASS TestDRIsParser test_get_rni_late 孕晚期 RNI 蛋白质需求应最高 通过
PASS TestDRIsParser test_get_rni_mid 孕中期 RNI 铁需求应增加 通过
PASS TestDRIsParser test_get_stages 应返回所有阶段 通过
PASS TestDRIsParser test_load load() 应返回完整结构 通过
PASS TestDietaryGuideParser test_core_principles_count 应有 6 条核心建议 通过
PASS TestDietaryGuideParser test_format_for_prompt format_for_prompt 应返回非空字符串 通过
PASS TestDietaryGuideParser test_get_recommendations_fallback 未知阶段应返回孕中期 通过
PASS TestDietaryGuideParser test_get_recommendations_late 孕晚期推荐量应不同 通过
PASS TestDietaryGuideParser test_get_recommendations_mid 孕中期应返回正确的推荐量 通过
PASS TestDietaryGuideParser test_load load() 应返回完整结构 通过
PASS TestLoadAllStandards test_compile_to_presets compile_standards_to_presets 应生成缓存文件 通过
PASS TestLoadAllStandards test_load_all load_all_standards 应返回所有标准 通过
PASS TestWeightStandardParser test_evaluate_above_range 体重高于标准应返回 warning 通过
PASS TestWeightStandardParser test_evaluate_below_range 体重低于标准应返回 warning 通过
PASS TestWeightStandardParser test_evaluate_invalid_bmi 无效 BMI 应返回 error 通过
PASS TestWeightStandardParser test_evaluate_within_range 体重在标准范围内应返回 ok 通过
PASS TestWeightStandardParser test_get_standard_boundary 边界值测试 通过
PASS TestWeightStandardParser test_get_standard_low_bmi 低体重 BMI (<18.5) 应返回低体重标准 通过
PASS TestWeightStandardParser test_get_standard_normal_bmi 正常 BMI (18.5-24) 应返回正确标准 通过
PASS TestWeightStandardParser test_get_standard_obese 肥胖 BMI (>=28) 应返回肥胖标准 通过
PASS TestWeightStandardParser test_get_standard_overweight 超重 BMI (24-28) 应返回超重标准 通过
PASS TestWeightStandardParser test_load_returns_standards load() 应返回结构化数据 通过
PASS TestLoadAll test_format_all_for_prompt test_format_all_for_prompt 通过
PASS TestLoadAll test_load_all_family_info test_load_all_family_info 通过
PASS TestMemoryManager test_add_daily test_add_daily 通过
PASS TestMemoryManager test_add_event test_add_event 通过
PASS TestMemoryManager test_format_for_prompt_empty test_format_for_prompt_empty 通过
PASS TestMemoryManager test_format_for_prompt_with_data test_format_for_prompt_with_data 通过
PASS TestMemoryManager test_load_all_empty test_load_all_empty 通过
PASS TestMemoryManager test_load_all_with_data test_load_all_with_data 通过
PASS TestPreferenceManager test_add_member test_add_member 通过
PASS TestPreferenceManager test_add_member_update test_add_member_update 通过
PASS TestPreferenceManager test_format_for_prompt_empty test_format_for_prompt_empty 通过
PASS TestPreferenceManager test_format_for_prompt_with_data test_format_for_prompt_with_data 通过
PASS TestPreferenceManager test_load_all_empty test_load_all_empty 通过
PASS TestPreferenceManager test_load_all_with_data test_load_all_with_data 通过
PASS TestRecipeManager test_add_duplicate_recipe test_add_duplicate_recipe 通过
PASS TestRecipeManager test_add_recipe test_add_recipe 通过
PASS TestRecipeManager test_ensure_file_creates test_ensure_file_creates 通过
PASS TestRecipeManager test_format_for_prompt_empty test_format_for_prompt_empty 通过
PASS TestRecipeManager test_format_for_prompt_with_data test_format_for_prompt_with_data 通过
PASS TestRecipeManager test_get_names test_get_names 通过
PASS TestRecipeManager test_load_all_empty test_load_all_empty 通过
PASS TestRecipeManager test_load_all_with_recipes test_load_all_with_recipes 通过
PASS TestDietExtractor test_extract_all_types 综合提取所有类型 通过
PASS TestDietExtractor test_extract_diet_basic 基本饮食记录提取 通过
PASS TestDietExtractor test_extract_diet_empty 无饮食记录应返回空列表 通过
PASS TestDietExtractor test_extract_diet_multiple 多条饮食记录提取 通过
PASS TestDietExtractor test_extract_memory 家庭记忆提取 通过
PASS TestDietExtractor test_extract_preference 偏好提取 通过
PASS TestDietExtractor test_extract_recipe 菜谱提取 通过
PASS TestDietExtractor test_extract_thinking 思考步骤提取 通过
PASS TestDietExtractor test_extract_weight 体重提取 通过
PASS TestDietExtractor test_fallback_extract_diet fallback 关键词匹配 通过
PASS TestDietExtractor test_fallback_extract_thinking fallback 思考步骤匹配 通过
PASS TestDietExtractor test_get_extract_prompt 提取提示词应包含日期 通过
PASS TestDietExtractor test_robust_extract_with_fallback 综合提取:正则失败时用 fallback 通过
PASS TestDietExtractor test_robust_extract_with_markup 综合提取:正则优先 通过
PASS TestDailyStatus test_days_since_last_summary 距离上次总结的天数 通过
PASS TestDailyStatus test_get_last_summary_date 获取最近总结日期 通过
PASS TestDailyStatus test_is_today_done 检查今日是否完成 通过
PASS TestDailyStatus test_load_empty 空文件应返回空字典 通过
PASS TestDailyStatus test_mark_day_ended 标记今日结束 通过
PASS TestDailyStatus test_mark_summary_done 标记总结完成 通过
PASS TestDailyStatus test_should_three_day_summary_false 刚总结完不应触发三天总结 通过
PASS TestLoopState test_all_states_defined 所有状态应被定义 通过
PASS TestLoopState test_state_count 应有 9 个状态 通过
PASS TestPregoPalLoop test_default_plugins_registered 应注册所有默认插件 通过
PASS TestPregoPalLoop test_get_briefing_empty 初始简报应为空 通过
PASS TestPregoPalLoop test_get_errors_empty 初始错误列表为空 通过
PASS TestPregoPalLoop test_get_thinking_keywords 初始思考关键词 通过
PASS TestPregoPalLoop test_loop_initialization 初始化应处于 LAUNCH 状态 通过
PASS TestPregoPalLoop test_plugin_count 应有 9 个默认插件 通过
PASS TestTransitions test_already_done_flow 今日已完成的流程 通过
PASS TestTransitions test_full_flow 完整流程应能到达 DONE 通过
PASS TestTransitions test_launch_transitions LAUNCH 应有 2 个转移 通过
PASS TestTransitions test_three_day_flow 触发三天总结的流程 通过
PASS TestAnalyzePlugins test_dri_analysis_plugin DRIs 分析插件 通过
PASS TestBriefPlugins test_briefing_generator_plugin 简报生成插件 通过
PASS TestConsolidatePlugins test_preset_writer_plugin 预设写入插件 通过
PASS TestFamilyQuizPlugins test_family_recipe_quiz_plugin 家庭菜谱检查插件 通过
PASS TestFamilyQuizPlugins test_weight_quiz_plugin 体重询问检查插件 通过
PASS TestPluginBase test_get_plugins_by_stage 按阶段获取插件 通过
PASS TestPluginBase test_loop_context_defaults LoopContext 默认值 通过
PASS TestPluginBase test_plugin_registry_init 注册中心初始化应为空 通过
PASS TestPluginBase test_plugin_result_custom PluginResult 自定义值 通过
PASS TestPluginBase test_plugin_result_defaults PluginResult 默认值 通过
PASS TestPluginBase test_register_plugin 注册插件 通过
PASS TestPluginBase test_unregister_plugin 注销插件 通过
PASS TestPluginExecution test_briefing_generator_execution 简报生成执行 通过
PASS TestPluginExecution test_diet_summary_execution 饮食总结执行 通过
PASS TestPluginExecution test_dri_analysis_execution DRIs 分析执行 通过
PASS TestPluginExecution test_dummy_plugin_execution 虚拟插件执行 通过
PASS TestPluginExecution test_family_memory_execution 家庭记忆执行 通过
PASS TestPluginExecution test_family_recipe_quiz_execution 家庭菜谱检查执行 通过
PASS TestPluginExecution test_preset_writer_execution 预设写入执行 通过
PASS TestPluginExecution test_three_day_summary_execution 三天总结执行 通过
PASS TestPluginExecution test_weight_check_execution 体重检查执行 通过
PASS TestPluginExecution test_weight_quiz_execution 体重询问检查执行 通过
PASS TestSummarizePlugins test_diet_summary_plugin 饮食总结插件 通过
PASS TestSummarizePlugins test_family_memory_plugin 家庭记忆插件 通过
PASS TestSummarizePlugins test_weight_check_plugin 体重检查插件 通过
PASS TestThreeDayPlugins test_three_day_summary_plugin 三天总结插件 通过