From 6ed8f5151719fbc14ec0ac6d28a346d1f74cf2ca Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 2 Jan 2026 22:42:31 +0100 Subject: Initial commit --- test/testenv.hh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/testenv.hh (limited to 'test/testenv.hh') diff --git a/test/testenv.hh b/test/testenv.hh new file mode 100644 index 0000000..abe0bc8 --- /dev/null +++ b/test/testenv.hh @@ -0,0 +1,22 @@ +#ifndef TESTENV_HH +#define TESTENV_HH + +#include +#include +#include +#include + +class TestEnv : public testing::Test { + protected: + void setenv(std::string const& name, std::string const& value); + void unsetenv(std::string const& name); + + void TearDown() override; + + private: + void saveenv(std::string const& name); + + std::map> env_; +}; + +#endif // TESTENV_HH -- cgit v1.2.3-70-g09d2