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

Function test_display_long_prompt_truncated

atomic-agent/src/envelope.rs:956–965  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

954
955 #[test]
956 fn test_display_long_prompt_truncated() {
957 let long_prompt = "a".repeat(200);
958 let e = SessionEnvelope::builder("s", "a")
959 .prompt_summary(long_prompt)
960 .build();
961 let s = e.to_string();
962 assert!(s.contains("..."));
963 // Full display should be bounded
964 assert!(s.len() < 200);
965 }
966
967 // Serde (JSON) roundtrip — for debugging/inspection
968

Callers

nothing calls this directly

Calls 2

buildMethod · 0.45
prompt_summaryMethod · 0.45

Tested by

no test coverage detected