MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / apply_rejects_unknown_array

Function apply_rejects_unknown_array

nodedb-array/src/sync/apply.rs:354–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352
353 #[test]
354 fn apply_rejects_unknown_array() {
355 let mut engine = MockEngine::new();
356 let op = put_op("unknown", 50, 100);
357 let outcome = apply_op(&mut engine, &op).unwrap();
358 assert!(matches!(
359 outcome,
360 ApplyOutcome::Rejected(ApplyRejection::ArrayUnknown { name }) if name == "unknown"
361 ));
362 }
363
364 #[test]
365 fn apply_rejects_schema_too_new() {

Callers

nothing calls this directly

Calls 2

apply_opFunction · 0.85
put_opFunction · 0.70

Tested by

no test coverage detected