scenario_simulator_v2 C++ API
Macros | Functions
test.cpp File Reference
#include <gtest/gtest.h>
#include <ament_index_cpp/get_package_share_directory.hpp>
#include <boost/filesystem.hpp>
#include <fstream>
#include <iostream>
#include <simple_junit/junit5.hpp>
#include <string>
Include dependency graph for test.cpp:

Macros

#define EXPECT_TEXT_FILE_EQ(FILE0, FILE1)
 

Functions

std::string readFromFile (const std::string &path)
 
std::string trimCharacter (const std::string &string, const std::string &character)
 
std::string trim (const std::string &string)
 
void cleanup (const std::string &filename)
 
 TEST (SIMPLE_JUNIT, PASS)
 
 TEST (SIMPLE_JUNIT, FAILURE)
 
 TEST (SIMPLE_JUNIT, ERROR)
 
 TEST (SIMPLE_JUNIT, COMPLEX)
 
 TEST (SIMPLE_JUNIT, ATTRIBUTES)
 
 TEST (SIMPLE_JUNIT, TESTSUITES_NAME)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ EXPECT_TEXT_FILE_EQ

#define EXPECT_TEXT_FILE_EQ (   FILE0,
  FILE1 
)
Value:
const std::string str0 = trim(readFromFile(FILE0)); \
const std::string str1 = trim(readFromFile(FILE1)); \
EXPECT_STREQ(str0.c_str(), str1.c_str());
std::string string
Definition: junit5.hpp:26
std::string readFromFile(const std::string &path)
Definition: test.cpp:24
std::string trim(const std::string &string)
Definition: test.cpp:45

Function Documentation

◆ cleanup()

void cleanup ( const std::string &  filename)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ readFromFile()

std::string readFromFile ( const std::string &  path)

◆ TEST() [1/6]

TEST ( SIMPLE_JUNIT  ,
ATTRIBUTES   
)

◆ TEST() [2/6]

TEST ( SIMPLE_JUNIT  ,
COMPLEX   
)

◆ TEST() [3/6]

TEST ( SIMPLE_JUNIT  ,
ERROR   
)

◆ TEST() [4/6]

TEST ( SIMPLE_JUNIT  ,
FAILURE   
)

◆ TEST() [5/6]

TEST ( SIMPLE_JUNIT  ,
PASS   
)

◆ TEST() [6/6]

TEST ( SIMPLE_JUNIT  ,
TESTSUITES_NAME   
)

◆ trim()

std::string trim ( const std::string &  string)

◆ trimCharacter()

std::string trimCharacter ( const std::string &  string,
const std::string &  character 
)