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

Function test_log_clone

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

Source from the content-addressed store, hash-verified

1053
1054 #[test]
1055 fn test_log_clone() {
1056 let log = Log::new()
1057 .with_count(5)
1058 .with_view("test")
1059 .with_format(LogFormat::Short);
1060 let cloned = log.clone();
1061
1062 assert_eq!(log.count, cloned.count);
1063 assert_eq!(log.view, cloned.view);
1064 assert_eq!(log.format, cloned.format);
1065 }
1066
1067 #[test]
1068 fn test_log_output_config_clone() {

Callers

nothing calls this directly

Calls 4

with_countMethod · 0.80
with_formatMethod · 0.45
with_viewMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected