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

Function test_log_builder_chain

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

Source from the content-addressed store, hash-verified

256
257 #[test]
258 fn test_log_builder_chain() {
259 let log = Log::new()
260 .with_count(20)
261 .with_view("release")
262 .with_tags_only(true)
263 .with_path("docs/")
264 .with_format(LogFormat::Json)
265 .with_reverse(true)
266 .with_from(50)
267 .with_full_hash(true);
268
269 assert_eq!(log.count, Some(20));
270 assert_eq!(log.view, Some("release".to_string()));
271 assert!(log.tags_only);
272 assert_eq!(log.path, Some("docs/".to_string()));
273 assert_eq!(log.format, LogFormat::Json);
274 assert!(log.reverse);
275 assert_eq!(log.from, Some(50));
276 assert!(log.full_hash);
277 }
278
279 #[test]
280 fn test_log_get_hash_length_default() {

Callers

nothing calls this directly

Calls 8

with_reverseMethod · 0.80
with_tags_onlyMethod · 0.80
with_countMethod · 0.80
with_full_hashMethod · 0.45
with_fromMethod · 0.45
with_formatMethod · 0.45
with_pathMethod · 0.45
with_viewMethod · 0.45

Tested by

no test coverage detected