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

Function test_large_files_list

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

Source from the content-addressed store, hash-verified

1063
1064 #[test]
1065 fn test_large_files_list() {
1066 let files: Vec<String> = (0..1000).map(|i| format!("src/file_{}.rs", i)).collect();
1067 let e = SessionEnvelope::builder("s", "a")
1068 .files_in_turn(files.clone())
1069 .build();
1070 let bytes = e.encode().unwrap();
1071 let decoded = SessionEnvelope::decode(&bytes).unwrap();
1072 assert_eq!(decoded.files_in_turn.len(), 1000);
1073 assert_eq!(decoded.files_in_turn, files);
1074 }
1075
1076 #[test]
1077 fn test_unicode_prompt_summary() {

Callers

nothing calls this directly

Calls 5

files_in_turnMethod · 0.80
encodeMethod · 0.80
buildMethod · 0.45
cloneMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected