MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_fallback_check_achievement_done

Function test_fallback_check_achievement_done

core/src/planning/llm_planner.rs:518–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516
517 #[test]
518 fn test_fallback_check_achievement_done() {
519 let goal = AgentGoal::new("Test task").with_criteria(vec!["Criterion 1".to_string()]);
520
521 let result = LlmPlanner::fallback_check_achievement(&goal, "The task is done.");
522 assert!(result.achieved);
523 assert!((result.progress - 1.0).abs() < f32::EPSILON);
524 assert!(result.remaining_criteria.is_empty());
525 }
526
527 #[test]
528 fn test_fallback_check_achievement_not_done() {

Callers

nothing calls this directly

Calls 1

with_criteriaMethod · 0.80

Tested by

no test coverage detected