MCPcopy Create free account
hub / github.com/crayzeewulf/libserial / testSerialPortSetGetVMin

Method testSerialPortSetGetVMin

test/SerialPortUnitTests.cpp:494–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void
495SerialPortUnitTests::testSerialPortSetGetVMin()
496{
497 serialPort1.Open(TEST_SERIAL_PORT_1) ;
498 ASSERT_TRUE(serialPort1.IsOpen()) ;
499
500 for (short i = 0; i < 5; i++)
501 {
502 serialPort1.SetVMin(i) ;
503 short vMin = serialPort1.GetVMin() ;
504 ASSERT_EQ(vMin, i) ;
505 }
506
507 serialPort1.Close() ;
508 ASSERT_FALSE(serialPort1.IsOpen()) ;
509}
510
511void
512SerialPortUnitTests::testSerialPortSetGetVTime()

Callers

nothing calls this directly

Calls 5

OpenMethod · 0.45
IsOpenMethod · 0.45
SetVMinMethod · 0.45
GetVMinMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected