libNbiotCore/test/serial_test.cpp
// Tests that clearError resets error to NoError
Tests that clearError resets error to NoError
Tests that clearError resets error to NoError
TEST(SerialTest, ClearError) {
    Serial s;
    EXPECT_EQ(((int) Serial::NoError), s.getError());
    s.configSetPutChar(nullptr);
    EXPECT_NE(((int) Serial::NoError), s.getError());
    s.clearError();
    EXPECT_EQ(((int) Serial::NoError), s.getError());
}
TEST ( SerialTest , ClearError ) { Serial s ; EXPECT_EQ ( ( ( int ) Serial :: NoError ) , s . getError ( ) ) ; s . configSetPutChar ( nullptr ) ; EXPECT_NE ( ( ( int ) Serial :: NoError ) , s . getError ( ) ) ; s . clearError ( ) ; EXPECT_EQ ( ( ( int ) Serial :: NoError ) , s . getError ( ) ) ; }
Tests that clearError resets error to NoError
Tests that clearError resets error to NoError