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

Function validate_schema_mismatch_selection

benchmarks/python/benchmark.py:670–675  ·  view source on GitHub ↗
(selected_serializers: List[str])

Source from the content-addressed store, hash-verified

668
669
670def validate_schema_mismatch_selection(selected_serializers: List[str]) -> None:
671 if schema_mismatch_enabled() and selected_serializers != ["fory"]:
672 raise ValueError(
673 f"{SCHEMA_MISMATCH_ENV}=1 supports only Fory benchmarks; "
674 "rerun with --serializer fory"
675 )
676
677
678def verify_schema_mismatch(datatype: str, decoded: Any, expected: Any) -> None:

Callers 1

mainFunction · 0.85

Calls 1

schema_mismatch_enabledFunction · 0.70

Tested by

no test coverage detected