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

Function test_root_line_format

atomic-cli/src/commands/view/list.rs:1046–1054  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1044
1045 #[test]
1046 fn test_root_line_format() {
1047 let dev = entry("dev", None, 3, "dev");
1048 let line = render_line(&dev, 0, 3);
1049 assert!(line.starts_with("* dev"));
1050
1051 let main = entry("main", None, 2, "dev");
1052 let line = render_line(&main, 0, 4);
1053 assert!(line.starts_with("main"));
1054 }
1055
1056 #[test]
1057 fn test_missing_parent_renders_as_root() {

Callers

nothing calls this directly

Calls 2

render_lineFunction · 0.85
entryFunction · 0.70

Tested by

no test coverage detected