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

Function test_turn_event_prompt_summary_truncated

atomic-agent/src/event.rs:868–874  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

866
867 #[test]
868 fn test_turn_event_prompt_summary_truncated() {
869 let long_prompt = "a".repeat(200);
870 let event = TurnEvent::new("s", HookType::TurnStart).with_prompt(long_prompt);
871 let summary = event.prompt_summary(72).unwrap();
872 assert!(summary.ends_with("..."));
873 assert!(summary.len() <= 72);
874 }
875
876 #[test]
877 fn test_turn_event_prompt_summary_none() {

Callers

nothing calls this directly

Calls 3

with_promptMethod · 0.80
unwrapMethod · 0.45
prompt_summaryMethod · 0.45

Tested by

no test coverage detected