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

Function test_record_builder_chain

atomic-cli/src/commands/record/tests.rs:180–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179 #[test]
180 fn test_record_builder_chain() {
181 let record = Record::new()
182 .with_message("Test")
183 .with_all(true)
184 .with_files(vec!["src/main.rs"])
185 .with_author("Bob")
186 .with_algorithm("patience")
187 .with_dry_run(true)
188 .with_skip_binary(true)
189 .with_max_size(1000);
190
191 assert_eq!(record.message, Some("Test".to_string()));
192 assert!(record.all);
193 assert_eq!(record.files.len(), 1);
194 assert_eq!(record.author, Some("Bob".to_string()));
195 assert_eq!(record.algorithm, "patience");
196 assert!(record.dry_run);
197 assert!(record.skip_binary);
198 assert_eq!(record.max_size, Some(1000));
199 }
200
201 // Algorithm Parsing Tests
202

Callers

nothing calls this directly

Calls 8

with_max_sizeMethod · 0.80
with_skip_binaryMethod · 0.45
with_dry_runMethod · 0.45
with_algorithmMethod · 0.45
with_authorMethod · 0.45
with_filesMethod · 0.45
with_allMethod · 0.45
with_messageMethod · 0.45

Tested by

no test coverage detected