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

Function test_format_empty_entries

atomic-cli/src/commands/log/tests.rs:1108–1118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1106
1107 #[test]
1108 fn test_format_empty_entries() {
1109 let log = Log::new();
1110
1111 // All formats should handle empty input gracefully
1112 assert_eq!(log.format_default(&[], 8), "");
1113 assert_eq!(log.format_short(&[], 8), "");
1114 assert_eq!(log.format_oneline(&[], 8), "");
1115
1116 let json_output = log.format_json(&[]);
1117 assert_eq!(json_output.trim(), "[]");
1118 }
1119
1120 #[test]
1121 fn test_format_short_no_message() {

Callers

nothing calls this directly

Calls 1

format_jsonMethod · 0.45

Tested by

no test coverage detected