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

Function Y_UNIT_TEST

util/system/shellcommand_ut.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61Y_UNIT_TEST_SUITE(TShellQuoteTest) {
62 Y_UNIT_TEST(TestQuoteArg) {
63 TString cmd;
64 ShellQuoteArg(cmd, "/pr f/krev/prev.exe");
65 ShellQuoteArgSp(cmd, "-DVal=\"W Quotes\"");
66 ShellQuoteArgSp(cmd, "-DVal=W Space");
67 ShellQuoteArgSp(cmd, "-DVal=Blah");
68 UNIT_ASSERT_STRINGS_EQUAL(cmd, "\"/pr f/krev/prev.exe\" \"-DVal=\\\"W Quotes\\\"\" \"-DVal=W Space\" \"-DVal=Blah\"");
69 }
70} // Y_UNIT_TEST_SUITE(TShellQuoteTest)
71
72Y_UNIT_TEST_SUITE(TShellCommandTest) {

Callers

nothing calls this directly

Calls 15

ShellQuoteArgFunction · 0.85
ShellQuoteArgSpFunction · 0.85
sleepFunction · 0.85
StripStringFunction · 0.85
SleepFunction · 0.85
MilliSecondsFunction · 0.85
TShellCommandClass · 0.85
SigEmptySetFunction · 0.85
SigAddSetFunction · 0.85
SigProcMaskFunction · 0.85
BinaryPathFunction · 0.85

Tested by

no test coverage detected