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
Environment::Environment
Environment(int argc, char **argv)
Definition: environment.h:11
Environment::executable_path
filesystem::path executable_path
Definition: environment.h:20
environment
Environment * environment
Environment
Definition: environment.h:8


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:16