Functions
motor_message_test.cc File Reference
#include <ubiquity_motor/motor_message.h>
#include <gtest/gtest.h>
Include dependency graph for motor_message_test.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 TEST (ubiquity_motor_message, motor_message_commandtype)
 TEST (ubiquity_motor_message, motor_message_commandtype_invalid)
 TEST (ubiquity_motor_message, motor_message_commandtype_overflow)
 TEST (ubiquity_motor_message, motor_message_commandtype_neg)
 TEST (ubiquity_motor_message, motor_message_register)
 TEST (ubiquity_motor_message, motor_message_register_invalid)
 TEST (ubiquity_motor_message, motor_message_register_overflow)
 TEST (ubiquity_motor_message, motor_message_register_neg)
 TEST (ubiquity_motor_message, motor_message_data_64bit_pos)
 TEST (ubiquity_motor_message, motor_message_data_64bit_zero)
 TEST (ubiquity_motor_message, motor_message_data_64bit_neg)
 TEST (ubiquity_motor_message, motor_message_data_32bit_pos)
 TEST (ubiquity_motor_message, motor_message_data_32bit_zero)
 TEST (ubiquity_motor_message, motor_message_data_32bit_neg)
 TEST (ubiquity_motor_message, motor_message_data_16bit_pos)
 TEST (ubiquity_motor_message, motor_message_data_16bit_zero)
 TEST (ubiquity_motor_message, motor_message_data_16bit_neg)
 TEST (ubiquity_motor_message, motor_message_data_8bit_pos)
 TEST (ubiquity_motor_message, motor_message_data_8bit_zero)
 TEST (ubiquity_motor_message, motor_message_data_8bit_neg)
 TEST (ubiquity_motor_message, motor_message_serialize)
 TEST (ubiquity_motor_message, motor_message_deserialize_good)
 TEST (ubiquity_motor_message, motor_message_deserialize_bad_delimeter)
 TEST (ubiquity_motor_message, motor_message_deserialize_bad_protocol)
 TEST (ubiquity_motor_message, motor_message_deserialize_bad_checksum)
 TEST (ubiquity_motor_message, motor_message_deserialize_bad_type)
 TEST (ubiquity_motor_message, motor_message_deserialize_bad_register)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 262 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_commandtype   
)

Copyright (c) 2015, Ubiquity Robotics All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of ubiquity_motor nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN AiiiiiiiiiiiNY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 34 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_commandtype_invalid   
)

Definition at line 44 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_commandtype_overflow   
)

Definition at line 51 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_commandtype_neg   
)

Definition at line 58 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_register   
)

Definition at line 66 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_register_invalid   
)

Definition at line 74 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_register_overflow   
)

Definition at line 81 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_register_neg   
)

Definition at line 88 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_64bit_pos   
)

Definition at line 96 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_64bit_zero   
)

Definition at line 103 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_64bit_neg   
)

Definition at line 110 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_32bit_pos   
)

Definition at line 117 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_32bit_zero   
)

Definition at line 124 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_32bit_neg   
)

Definition at line 131 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_16bit_pos   
)

Definition at line 138 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_16bit_zero   
)

Definition at line 145 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_16bit_neg   
)

Definition at line 152 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_8bit_pos   
)

Definition at line 159 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_8bit_zero   
)

Definition at line 166 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_data_8bit_neg   
)

Definition at line 173 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_serialize   
)

Definition at line 180 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_deserialize_good   
)

Definition at line 193 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_deserialize_bad_delimeter   
)

Definition at line 207 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_deserialize_bad_protocol   
)

Definition at line 218 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_deserialize_bad_checksum   
)

Definition at line 229 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_deserialize_bad_type   
)

Definition at line 240 of file motor_message_test.cc.

TEST ( ubiquity_motor_message  ,
motor_message_deserialize_bad_register   
)

Definition at line 251 of file motor_message_test.cc.



ubiquity_motor
Author(s):
autogenerated on Thu Jun 6 2019 18:33:28