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

Method TestNewNewStyle

util/ysaveload_ut.cpp:70–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69private:
70 inline void TestNewNewStyle() {
71 TString ss;
72
73 {
74 TNewNewStyleHelper h;
75
76 h.Str = "qw";
77 h.Int = 42;
78
79 TStringOutput so(ss);
80
81 ::Save(&so, h);
82 }
83
84 {
85 TNewNewStyleHelper h;
86
87 TStringInput si(ss);
88 ::Load(&si, h);
89
90 UNIT_ASSERT_EQUAL(h.Str, "qw");
91 UNIT_ASSERT_EQUAL(h.Int, 42);
92 }
93 }
94
95 inline void TestNewStyle() {
96 TString ss;

Callers

nothing calls this directly

Calls 2

SaveFunction · 0.70
LoadFunction · 0.70

Tested by

no test coverage detected