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

Function Y_UNIT_TEST

util/string/subst_ut.cpp:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 Y_UNIT_TEST(TestSubstGlobalNoSubstA) {
28 for (const auto& from : ALL_FROM) {
29 const size_t fromSz = from.size();
30 const size_t minSz = fromSz;
31 const size_t maxSz = fromSz + MIN_FROM_CTX;
32 for (size_t sz = minSz; sz <= maxSz; ++sz) {
33 for (size_t fromPos = 0; fromPos < sz; ++fromPos) {
34 TString s{sz, '.'};
35 for (const auto& to : ALL_TO) {
36 AssertSubstGlobal(s, s, from, to, fromPos, 0);
37 }
38 }
39 }
40 }
41 }
42
43 Y_UNIT_TEST(TestSubstGlobalNoSubstB) {
44 for (const auto& from : ALL_FROM) {

Callers

nothing calls this directly

Calls 5

AssertSubstGlobalFunction · 0.85
JoinSeqFunction · 0.85
DoTestSubstGlobalFunction · 0.85
SubstGlobalFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected