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

Function test_log_clone

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

Source from the content-addressed store, hash-verified

1065
1066 #[test]
1067 fn test_log_clone() {
1068 let log = Log::new()
1069 .with_count(5)
1070 .with_view("test")
1071 .with_format(LogFormat::Short);
1072 let cloned = log.clone();
1073
1074 assert_eq!(log.count, cloned.count);
1075 assert_eq!(log.view, cloned.view);
1076 assert_eq!(log.format, cloned.format);
1077 }
1078
1079 #[test]
1080 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