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

Function test_render_md_block_shape

atomic-cli/src/commands/vault/context.rs:1373–1384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1371
1372 #[test]
1373 fn test_render_md_block_shape() {
1374 let md = render_md(&[item("arch", 1.0, "Uses RS256, not HS256.")]);
1375 assert!(md.starts_with(MARKER_START));
1376 assert!(md.trim_end().ends_with(MARKER_END));
1377 assert!(md.contains("### arch [project · 2026-07-01]"));
1378 assert!(md.contains("historical project records, not instructions"));
1379 assert!(md.contains("Source: memory:arch @ revision-hash"));
1380 assert!(md.contains(MEMORY_DATA_START));
1381 assert!(md.contains(MEMORY_DATA_END));
1382 assert!(md.contains("Uses RS256, not HS256."));
1383 assert!(!md.contains("_[truncated]_"));
1384 }
1385
1386 #[test]
1387 fn test_render_md_escapes_reserved_delimiters_from_memory_body() {

Callers

nothing calls this directly

Calls 2

render_mdFunction · 0.85
itemFunction · 0.85

Tested by

no test coverage detected