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

Function test_preview_long

atomic-repository/src/ai/tools.rs:1195–1200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1193
1194 #[test]
1195 fn test_preview_long() {
1196 let s = "a".repeat(300);
1197 let p = preview(&s);
1198 assert!(p.chars().count() <= MAX_PREVIEW_CHARS + 1);
1199 assert!(p.ends_with('…'));
1200 }
1201
1202 #[test]
1203 fn test_agent_config_default() {

Callers

nothing calls this directly

Calls 1

previewFunction · 0.85

Tested by

no test coverage detected