MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_generator_build_prompt

Function test_generator_build_prompt

atomic-agent/src/transcript/tests.rs:718–727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

716
717#[test]
718fn test_generator_build_prompt() {
719 let gen = ClaudeCliGenerator::new();
720 let prompt = gen.build_prompt("[User] Fix the bug\n[Assistant] Done\n");
721 assert!(prompt.contains("<transcript>"));
722 assert!(prompt.contains("[User] Fix the bug"));
723 assert!(prompt.contains("</transcript>"));
724 assert!(prompt.contains("Return a JSON object"));
725 assert!(prompt.contains("\"function\""));
726 assert!(prompt.contains("\"category\""));
727}
728
729#[test]
730fn test_generator_clean_env_strips_git() {

Callers

nothing calls this directly

Calls 1

build_promptMethod · 0.80

Tested by

no test coverage detected