environment.h
Go to the documentation of this file.
1 #ifndef ENVIRONMENT_H
2 #define ENVIRONMENT_H
3 
4 #include <gtest/gtest.h>
5 
6 #include "filesystem/path.h"
7 
8 class Environment : public testing::Environment
9 {
10 public:
11  Environment(int argc, char** argv)
12  {
13  if (argc >= 1)
14  {
15  executable_path = filesystem::path(argv[0]).make_absolute();
16  }
17  }
18 
19  // the absolute path to the test executable
20  filesystem::path executable_path;
21 };
22 
23 // for accessing the environment within a test
24 extern Environment* environment;
25 
26 #endif
filesystem::path executable_path
Definition: environment.h:20
Environment * environment
Definition: gtest_tree.cpp:122
Environment(int argc, char **argv)
Definition: environment.h:11


behaviortree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Mon Jul 3 2023 02:50:14