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

Method ValidateSchemaMismatch

benchmarks/csharp/Program.cs:136–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 }
135
136 public void ValidateSchemaMismatch()
137 {
138 if (!SchemaMismatch)
139 {
140 return;
141 }
142
143 if (SerializerFilter.Count != 1 || !SerializerFilter.Contains("fory"))
144 {
145 throw new ArgumentException(
146 $"{SchemaMismatchEnv}=1 supports only Fory benchmarks; rerun with --serializer fory");
147 }
148 }
149
150 private static void RequireValue(string[] args, int index)
151 {

Callers 1

MainMethod · 0.80

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected