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

Function test_exceeds_limit_with_limit

atomic-core/src/crdt/apply/options.rs:779–785  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

777
778 #[test]
779 fn test_exceeds_limit_with_limit() {
780 let options = ApplyOptions::builder().max_operations(Some(100)).build();
781 assert!(!options.exceeds_limit(0));
782 assert!(!options.exceeds_limit(99));
783 assert!(options.exceeds_limit(100));
784 assert!(options.exceeds_limit(101));
785 }
786
787 #[test]
788 fn test_exceeds_limit_zero() {

Callers

nothing calls this directly

Calls 2

max_operationsMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected