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

Source from the content-addressed store, hash-verified

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