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

Function test_message_with_long_prompt

atomic-agent/src/record/tests.rs:506–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504
505#[test]
506fn test_message_with_long_prompt() {
507 let session = make_session();
508 let event = make_event();
509 let mut options = make_options(&session, &event);
510 options.prompt = Some("a".repeat(200));
511 let status = empty_status();
512
513 let msg = build_turn_message(&options, &status, &no_untracked());
514 // The prompt is meaningful (long, not a slash command)
515 assert!(msg.len() <= 72);
516 assert!(msg.ends_with("..."));
517}
518
519// build_file_change_summary tests
520

Callers

nothing calls this directly

Calls 6

make_eventFunction · 0.85
make_optionsFunction · 0.85
empty_statusFunction · 0.85
build_turn_messageFunction · 0.85
no_untrackedFunction · 0.85
make_sessionFunction · 0.70

Tested by

no test coverage detected