MCPcopy Create free account
hub / github.com/catboost/catboost / TestSerializationCase

Function TestSerializationCase

catboost/libs/data/ut/data_provider_ut.cpp:292–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291 template <class TTObjectsDataProvider>
292 void TestSerializationCase(
293 TProcessedDataProviderTemplate<TTObjectsDataProvider>& trainingDataProvider
294 ) {
295 TBuffer buffer;
296
297 {
298 TBufferOutput out(buffer);
299 SerializeToArcadiaStream(out, trainingDataProvider);
300 }
301
302 TProcessedDataProviderTemplate<TTObjectsDataProvider> trainingDataProvider2;
303
304 {
305 TBufferInput in(buffer);
306 SerializeFromStream(in, trainingDataProvider2);
307 }
308
309 Compare(trainingDataProvider, trainingDataProvider2);
310 }
311
312
313 template <class TTObjectsDataProvider>

Callers 2

TestSerializationFunction · 0.85

Calls 3

SerializeToArcadiaStreamFunction · 0.85
SerializeFromStreamFunction · 0.85
CompareFunction · 0.70

Tested by

no test coverage detected