Classes | Functions
motor_serial_test.cc File Reference
#include <gtest/gtest.h>
#include <ros/ros.h>
#include <ubiquity_motor/motor_message.h>
#include <ubiquity_motor/motor_serial.h>
#include <string>
#include <util.h>
Include dependency graph for motor_serial_test.cc:

Go to the source code of this file.

Classes

class  MotorSerialTests
 

Functions

int main (int argc, char **argv)
 
 TEST (MotorSerialNoFixtureTests, badPortnameException)
 
 TEST_F (MotorSerialTests, badProtocolReadFails)
 
 TEST_F (MotorSerialTests, badReadFails)
 
 TEST_F (MotorSerialTests, badTypeReadFails)
 
 TEST_F (MotorSerialTests, errorReadWorks)
 
 TEST_F (MotorSerialTests, goodReadWorks)
 
 TEST_F (MotorSerialTests, incompleteMisalignedReadFails)
 
 TEST_F (MotorSerialTests, incompleteReadFails)
 
 TEST_F (MotorSerialTests, misalignedManyGoodReadWorks)
 
 TEST_F (MotorSerialTests, misalignedOneBadReadFails)
 
 TEST_F (MotorSerialTests, misalignedOneGoodReadWorks)
 
 TEST_F (MotorSerialTests, serialClosedOnInterupt)
 
 TEST_F (MotorSerialTests, writeMultipleOutputs)
 
 TEST_F (MotorSerialTests, writeOutputs)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 356 of file motor_serial_test.cc.

◆ TEST()

TEST ( MotorSerialNoFixtureTests  ,
badPortnameException   
)

Definition at line 69 of file motor_serial_test.cc.

◆ TEST_F() [1/13]

TEST_F ( MotorSerialTests  ,
badProtocolReadFails   
)

Definition at line 228 of file motor_serial_test.cc.

◆ TEST_F() [2/13]

TEST_F ( MotorSerialTests  ,
badReadFails   
)

Definition at line 140 of file motor_serial_test.cc.

◆ TEST_F() [3/13]

TEST_F ( MotorSerialTests  ,
badTypeReadFails   
)

Definition at line 250 of file motor_serial_test.cc.

◆ TEST_F() [4/13]

TEST_F ( MotorSerialTests  ,
errorReadWorks   
)

Definition at line 127 of file motor_serial_test.cc.

◆ TEST_F() [5/13]

TEST_F ( MotorSerialTests  ,
goodReadWorks   
)

Definition at line 81 of file motor_serial_test.cc.

◆ TEST_F() [6/13]

TEST_F ( MotorSerialTests  ,
incompleteMisalignedReadFails   
)

Definition at line 206 of file motor_serial_test.cc.

◆ TEST_F() [7/13]

TEST_F ( MotorSerialTests  ,
incompleteReadFails   
)

Definition at line 184 of file motor_serial_test.cc.

◆ TEST_F() [8/13]

TEST_F ( MotorSerialTests  ,
misalignedManyGoodReadWorks   
)

Definition at line 111 of file motor_serial_test.cc.

◆ TEST_F() [9/13]

TEST_F ( MotorSerialTests  ,
misalignedOneBadReadFails   
)

Definition at line 162 of file motor_serial_test.cc.

◆ TEST_F() [10/13]

TEST_F ( MotorSerialTests  ,
misalignedOneGoodReadWorks   
)

Definition at line 96 of file motor_serial_test.cc.

◆ TEST_F() [11/13]

TEST_F ( MotorSerialTests  ,
serialClosedOnInterupt   
)

Definition at line 74 of file motor_serial_test.cc.

◆ TEST_F() [12/13]

TEST_F ( MotorSerialTests  ,
writeMultipleOutputs   
)

Definition at line 291 of file motor_serial_test.cc.

◆ TEST_F() [13/13]

TEST_F ( MotorSerialTests  ,
writeOutputs   
)

Definition at line 272 of file motor_serial_test.cc.



ubiquity_motor
Author(s):
autogenerated on Thu Nov 16 2023 03:30:56