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

Function localSerializer

javascript/packages/core/test/schema-limit.test.js:138–151  ·  view source on GitHub ↗
(typeInfo)

Source from the content-addressed store, hash-verified

136}
137
138function localSerializer(typeInfo) {
139 const typeMeta = TypeMeta.fromTypeInfo(typeInfo);
140 return {
141 getHash() {
142 return typeMeta.getHash();
143 },
144 getTypeInfo() {
145 return typeInfo;
146 },
147 getTypeMetaBytes() {
148 return typeMeta.toBytes();
149 },
150 };
151}
152
153runTest("remote schema limit rejects extra versions", () => {
154 const readContext = context();

Callers 2

getSerializerByNameFunction · 0.85

Calls 1

fromTypeInfoMethod · 0.80

Tested by

no test coverage detected