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

Source from the content-addressed store, hash-verified

1118
1119 #[test]
1120 fn test_format_empty_entries() {
1121 let log = Log::new();
1122
1123 // All formats should handle empty input gracefully
1124 assert_eq!(log.format_default(&[], 8), "");
1125 assert_eq!(log.format_short(&[], 8), "");
1126 assert_eq!(log.format_oneline(&[], 8), "");
1127
1128 let json_output = log.format_json(&[]);
1129 assert_eq!(json_output.trim(), "[]");
1130 }
1131
1132 #[test]
1133 fn test_format_short_no_message() {

Callers

nothing calls this directly

Calls 1

format_jsonMethod · 0.45

Tested by

no test coverage detected