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

Function test_options_chaining

atomic-core/src/output/repo/file.rs:1040–1049  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1038
1039 #[test]
1040 fn test_options_chaining() {
1041 let opts = FileOutputOptions::new()
1042 .include_deleted(true)
1043 .max_vertices(5000)
1044 .flush_after_write(false);
1045
1046 assert!(opts.include_deleted);
1047 assert_eq!(opts.max_vertices, Some(5000));
1048 assert!(!opts.flush_after_write);
1049 }
1050
1051 #[test]
1052 fn test_options_clone() {

Callers

nothing calls this directly

Calls 3

flush_after_writeMethod · 0.80
max_verticesMethod · 0.45
include_deletedMethod · 0.45

Tested by

no test coverage detected