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

Function test_render_multiple_placeholders

core/src/prompts.rs:631–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

629
630 #[test]
631 fn test_render_multiple_placeholders() {
632 let template = "Goal: {goal}\nCriteria: {criteria}\nState: {current_state}";
633 let result = render(
634 template,
635 &[
636 ("goal", "Build a REST API"),
637 ("criteria", "- Endpoint works\n- Tests pass"),
638 ("current_state", "API is deployed"),
639 ],
640 );
641 assert!(result.contains("Build a REST API"));
642 assert!(result.contains("Endpoint works"));
643 assert!(result.contains("API is deployed"));
644 }
645
646 #[test]
647 fn test_delegated_agent_prompts_contain_guidelines() {

Callers

nothing calls this directly

Calls 1

renderFunction · 0.85

Tested by

no test coverage detected