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

Function test_preview_long

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

Source from the content-addressed store, hash-verified

1254
1255 #[test]
1256 fn test_preview_long() {
1257 let s = "a".repeat(300);
1258 let p = preview(&s);
1259 assert!(p.chars().count() <= MAX_PREVIEW_CHARS + 1);
1260 assert!(p.ends_with('…'));
1261 }
1262
1263 #[test]
1264 fn test_agent_config_default() {

Callers

nothing calls this directly

Calls 1

previewFunction · 0.70

Tested by

no test coverage detected