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

Method testSerialPortSetGetVTime

test/SerialPortUnitTests.cpp:511–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void
512SerialPortUnitTests::testSerialPortSetGetVTime()
513{
514 serialPort1.Open(TEST_SERIAL_PORT_1) ;
515 ASSERT_TRUE(serialPort1.IsOpen()) ;
516
517 for (short i = 0; i < 5; i++)
518 {
519 serialPort1.SetVTime(i) ;
520 short vTime = serialPort1.GetVTime() ;
521 ASSERT_EQ(vTime, i) ;
522 }
523
524 serialPort1.Close() ;
525 ASSERT_FALSE(serialPort1.IsOpen()) ;
526}
527
528void
529SerialPortUnitTests::testSerialPortSetGetDTR()

Callers

nothing calls this directly

Calls 5

OpenMethod · 0.45
IsOpenMethod · 0.45
SetVTimeMethod · 0.45
GetVTimeMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected