MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / TEST_F

Function TEST_F

lib/mdflib/mdflib_test/src/testflexraylogger.cpp:113–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112
113TEST_F(TestFlexRayLogger, IFlexRayEvent) {
114 FlexRayFrame msg;
115 EXPECT_EQ(msg.MessageType(), FlexRayMessageType::Frame);
116
117 msg.BusChannel(123);
118 EXPECT_EQ(msg.BusChannel(), 123);
119
120 msg.FrameId(345);
121 EXPECT_EQ(msg.FrameId(),345);
122
123 msg.CycleCount(34);
124 EXPECT_EQ(msg.CycleCount(), 34);
125
126 msg.Channel(FlexRayChannel::B);
127 EXPECT_EQ(msg.Channel(), FlexRayChannel::B);
128
129 msg.Direction(FlexRayDirection::Tx);
130 EXPECT_EQ(msg.Direction(), FlexRayDirection::Tx);
131}
132
133TEST_F(TestFlexRayLogger, FlexRayFrame) {
134 FlexRayFrame msg;

Callers

nothing calls this directly

Calls 15

MdStringClass · 0.85
TimeStampToNsFunction · 0.85
FrameIdMethod · 0.80
CycleCountMethod · 0.80
ChannelMethod · 0.80
PayloadLengthMethod · 0.80
HeaderCrcMethod · 0.80
ReservedMethod · 0.80
PayloadPreambleMethod · 0.80
NullFrameMethod · 0.80
SyncFrameMethod · 0.80

Tested by

no test coverage detected