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

Function test_prompt_has_required_fields

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

Source from the content-addressed store, hash-verified

801
802#[test]
803fn test_prompt_has_required_fields() {
804 let gen = ClaudeCliGenerator::new();
805 let prompt = gen.build_prompt("test");
806 // Verify the prompt asks for all the fields we expect in TurnReasoning
807 assert!(prompt.contains("\"intent\""));
808 assert!(prompt.contains("\"outcome\""));
809 assert!(prompt.contains("\"learnings\""));
810 assert!(prompt.contains("\"repo\""));
811 assert!(prompt.contains("\"code\""));
812 assert!(prompt.contains("\"workflow\""));
813 assert!(prompt.contains("\"friction\""));
814 assert!(prompt.contains("\"open_items\""));
815 assert!(prompt.contains("\"path\""));
816 assert!(prompt.contains("\"line\""));
817 assert!(prompt.contains("\"function\""));
818 assert!(prompt.contains("\"finding\""));
819 assert!(prompt.contains("\"category\""));
820}
821
822#[test]
823fn test_prompt_has_security_boundary() {

Callers

nothing calls this directly

Calls 1

build_promptMethod · 0.80

Tested by

no test coverage detected