CORESENSE4home_Architecture
Loading...
Searching...
No Matches
master_test.cpp File Reference
#include "ament_index_cpp/get_package_share_directory.hpp"
#include "cs4home_core/Flow.hpp"
#include "cs4home_core/CognitiveModule.hpp"
#include "gtest/gtest.h"
Include dependency graph for master_test.cpp:

Functions

int main (int argc, char **argv)
 Main function for running all GoogleTest unit tests.
 
 TEST (flow_test, flow_creation)
 Unit test for verifying the creation and structure of Flow instances.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Main function for running all GoogleTest unit tests.

Initializes GoogleTest and ROS 2, then runs all tests defined in the executable.

Parameters
argcArgument count
argvArgument vector
Returns
int Test run result (0 if all tests passed, non-zero otherwise)

◆ TEST()

TEST ( flow_test ,
flow_creation  )

Unit test for verifying the creation and structure of Flow instances.

This test checks that Flow instances are created correctly with the expected sequence of nodes, ensuring that the get_nodes() function returns the correct vector of node names.