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

Function test_context_new

atomic-core/src/crdt/apply/context.rs:931–939  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

929
930 #[test]
931 fn test_context_new() {
932 let options = ApplyOptions::default();
933 let context = ApplyContext::new(options.clone());
934
935 assert_eq!(context.options(), &options);
936 assert_eq!(context.stats().total_operations(), 0);
937 assert!(context.conflicts().is_empty());
938 assert!(!context.has_failed());
939 }
940
941 #[test]
942 fn test_context_with_defaults() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected