src/sim/port.test.cc
/** Test getting the port id. */
Test getting the port id.
Test getting the port id .
TEST(PortTest, GetId)
{
    TestPort port(0), port2(2);
    ASSERT_EQ(port.getId(), 0);
    ASSERT_EQ(port2.getId(), 2);
}
TEST ( PortTest , GetId ) { TestPort port ( 0 ) , port2 ( 2 ) ; ASSERT_EQ ( port . getId ( ) , 0 ) ; ASSERT_EQ ( port2 . getId ( ) , 2 ) ; }
Test getting the port id.
Test getting the port id .