MCPcopy Create free account
hub / github.com/apache/fory / validateSchemaMismatchSelection

Function validateSchemaMismatchSelection

benchmarks/javascript/benchmark.js:724–733  ·  view source on GitHub ↗
(options, schemaMismatch)

Source from the content-addressed store, hash-verified

722}
723
724function validateSchemaMismatchSelection(options, schemaMismatch) {
725 if (!schemaMismatch) {
726 return;
727 }
728 if (options.serializer !== "fory") {
729 throw new Error(
730 `${SCHEMA_MISMATCH_ENV}=1 supports only Fory benchmarks; rerun with --serializer fory`
731 );
732 }
733}
734
735function decodeProtoObject(protoType, bytes) {
736 const message = protoType.decode(bytes);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected