CORESENSE4home_Architecture
|
#include "ament_index_cpp/get_package_share_directory.hpp"
#include "cs4home_core/Flow.hpp"
#include "cs4home_core/CognitiveModule.hpp"
#include "gtest/gtest.h"
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. | |
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.
argc | Argument count |
argv | Argument vector |
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.