Classes | Functions
test_comms.cpp File Reference
#include "um7/comms.h"
#include "um7/registers.h"
#include "serial/serial.h"
#include <gtest/gtest.h>
#include <fcntl.h>
Include dependency graph for test_comms.cpp:

Go to the source code of this file.

Classes

class  FakeSerial
 

Functions

int main (int argc, char **argv)
 
 TEST_F (FakeSerial, basic_message_rx)
 
 TEST_F (FakeSerial, batch_message_rx)
 
 TEST_F (FakeSerial, bad_checksum_message_rx)
 
 TEST_F (FakeSerial, garbage_bytes_preceeding_message_rx)
 
 TEST_F (FakeSerial, timeout_message_rx)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 102 of file test_comms.cpp.

◆ TEST_F() [1/5]

TEST_F ( FakeSerial  ,
basic_message_rx   
)

Definition at line 45 of file test_comms.cpp.

◆ TEST_F() [2/5]

TEST_F ( FakeSerial  ,
batch_message_rx   
)

Definition at line 57 of file test_comms.cpp.

◆ TEST_F() [3/5]

TEST_F ( FakeSerial  ,
bad_checksum_message_rx   
)

Definition at line 71 of file test_comms.cpp.

◆ TEST_F() [4/5]

TEST_F ( FakeSerial  ,
garbage_bytes_preceeding_message_rx   
)

Definition at line 83 of file test_comms.cpp.

◆ TEST_F() [5/5]

TEST_F ( FakeSerial  ,
timeout_message_rx   
)

Definition at line 94 of file test_comms.cpp.



um7
Author(s): Mike Purvis , Alex Brown
autogenerated on Thu Apr 14 2022 02:08:00