MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / TEST

Function TEST

test/UnitTests/CmdLineParserTest.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "CmdLineParser.h"
22
23TEST(CCmdLineParser, Null)
24{
25 CCmdLineParser parser(nullptr);
26 EXPECT_FALSE(parser.HasKey(L"action"));
27 EXPECT_FALSE(parser.HasVal(L"action"));
28 EXPECT_EQ(nullptr, parser.GetVal(L"action"));
29 EXPECT_EQ(0, parser.GetLongVal(L"action"));
30 EXPECT_EQ(0, parser.GetLongLongVal(L"action"));
31}
32
33TEST(CCmdLineParser, Empty)
34{

Callers

nothing calls this directly

Calls 7

CheckEscapeValueFunction · 0.85
CStringClass · 0.85
HasKeyMethod · 0.80
HasValMethod · 0.80
GetValMethod · 0.80
GetLongValMethod · 0.80
GetLongLongValMethod · 0.80

Tested by

no test coverage detected