libNbiotCore/test/serial_test.cpp
// Tests that error is set properly if read byte function wasn't set properly
Tests that error is set properly if read byte function wasn't set properly
Tests that error is set properly if read byte function wasn ' t set properly
TEST(SerialTest, NoReadByteFunction) {
    Serial s;
    s.configSetReadByte(nullptr);
    EXPECT_EQ(((int) Serial::NoReadFunction), s.getError());
}
TEST ( SerialTest , NoReadByteFunction ) { Serial s ; s . configSetReadByte ( nullptr ) ; EXPECT_EQ ( ( ( int ) Serial :: NoReadFunction ) , s . getError ( ) ) ; }
Tests that error is set properly if read byte function wasn't set properly
Tests that error is set properly if read byte function wasn ' t set properly