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:504–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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