Classes | Functions
to_topic_test.cpp File Reference
#include <socketcan_bridge/socketcan_to_topic.h>
#include <can_msgs/Frame.h>
#include <socketcan_interface/socketcan.h>
#include <socketcan_interface/dummy.h>
#include <socketcan_bridge/topic_to_socketcan.h>
#include <gtest/gtest.h>
#include <ros/ros.h>
#include <list>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for to_topic_test.cpp:

Go to the source code of this file.

Classes

class  msgCollector
 

Functions

std::string convertMessageToString (const can_msgs::Frame &msg, bool lc=true)
 
int main (int argc, char **argv)
 
 TEST (SocketCANToTopicTest, checkCorrectCanIdFilter)
 
 TEST (SocketCANToTopicTest, checkCorrectData)
 
 TEST (SocketCANToTopicTest, checkInvalidCanIdFilter)
 
 TEST (SocketCANToTopicTest, checkInvalidFrameHandling)
 
 TEST (SocketCANToTopicTest, checkMaskFilter)
 

Function Documentation

◆ convertMessageToString()

std::string convertMessageToString ( const can_msgs::Frame &  msg,
bool  lc = true 
)

Definition at line 54 of file to_topic_test.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 306 of file to_topic_test.cpp.

◆ TEST() [1/5]

TEST ( SocketCANToTopicTest  ,
checkCorrectCanIdFilter   
)

Definition at line 161 of file to_topic_test.cpp.

◆ TEST() [2/5]

TEST ( SocketCANToTopicTest  ,
checkCorrectData   
)

Definition at line 61 of file to_topic_test.cpp.

◆ TEST() [3/5]

TEST ( SocketCANToTopicTest  ,
checkInvalidCanIdFilter   
)

Definition at line 219 of file to_topic_test.cpp.

◆ TEST() [4/5]

TEST ( SocketCANToTopicTest  ,
checkInvalidFrameHandling   
)

Definition at line 115 of file to_topic_test.cpp.

◆ TEST() [5/5]

TEST ( SocketCANToTopicTest  ,
checkMaskFilter   
)

Definition at line 265 of file to_topic_test.cpp.



socketcan_bridge
Author(s): Ivor Wanders
autogenerated on Wed Mar 2 2022 00:52:33