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

Function test_retrieval_options_builder

atomic-core/src/output/crdt.rs:715–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713
714 #[test]
715 fn test_retrieval_options_builder() {
716 let options = RetrievalOptions::new()
717 .with_deleted_lines()
718 .with_deleted_tokens()
719 .with_max_lines(100);
720
721 assert!(options.include_deleted_lines);
722 assert!(options.include_deleted_tokens);
723 assert_eq!(options.max_lines, Some(100));
724 }
725}

Callers

nothing calls this directly

Calls 3

with_max_linesMethod · 0.80
with_deleted_tokensMethod · 0.80
with_deleted_linesMethod · 0.80

Tested by

no test coverage detected