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

Function TEST

cpp/test/abstract_controller_test.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace scsi_defs;
15
16TEST(AbstractControllerTest, AllocateCmd)
17{
18 MockAbstractController controller;
19
20 EXPECT_EQ(16, controller.GetCmd().size());
21 controller.AllocateCmd(1234);
22 EXPECT_EQ(1234, controller.GetCmd().size());
23}
24
25TEST(AbstractControllerTest, AllocateBuffer)
26{

Callers

nothing calls this directly

Calls 15

GetCmdMethod · 0.80
AllocateCmdMethod · 0.80
AllocateBufferMethod · 0.80
AddDeviceMethod · 0.80
SetPhaseMethod · 0.80
IsBusFreeMethod · 0.80
GetStatusMethod · 0.80
GetLengthMethod · 0.80
SetNextMethod · 0.80
GetNextMethod · 0.80
IncrementNextMethod · 0.80
SetMessageMethod · 0.80

Tested by

no test coverage detected