MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / TEST

Function TEST

cpp/test/command_context_test.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace protobuf_util;
20
21TEST(CommandContext, SetGetDefaultFolder)
22{
23 PbCommand command;
24 CommandContext context(command, "folder1", "");
25
26 EXPECT_EQ("folder1", context.GetDefaultFolder());
27 context.SetDefaultFolder("folder2");
28 EXPECT_EQ("folder2", context.GetDefaultFolder());
29}
30
31TEST(CommandContext, ReadCommand)
32{

Callers

nothing calls this directly

Calls 10

CreateTempFileFunction · 0.85
CreateTempFileWithDataFunction · 0.85
ReadCommandMethod · 0.80
WriteResultMethod · 0.80
WriteSuccessResultMethod · 0.80
ReturnLocalizedErrorMethod · 0.80
ReturnSuccessStatusMethod · 0.80
ReturnErrorStatusMethod · 0.80
GetDefaultFolderMethod · 0.45
SetDefaultFolderMethod · 0.45

Tested by

no test coverage detected