1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-08-15
- * Changed: 2022-05-11
- *
- * */
- #ifndef TEST_HELPER_HPP
- #define TEST_HELPER_HPP
- #include <string>
- #include <ls_std/ls_std.hpp>
- class TestHelper
- {
- public:
- TestHelper() = default;
- ~TestHelper() = default;
- static std::string getResourcesFolderLocation()
- {
- return TestHelper::getTestFolderLocation() + "resources" + ls::std::io::FilePathSeparator::get();
- }
- static std::string getTestFolderLocation()
- {
- ls::std::io::File buildDirectory{ls::std::io::File::getWorkingDirectory()};
- return buildDirectory.getParent() + "test" + ls::std::io::FilePathSeparator::get();
- }
- };
- #endif
|