TestHelper.hpp 801 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2022-05-11
  7. *
  8. * */
  9. #ifndef TEST_HELPER_HPP
  10. #define TEST_HELPER_HPP
  11. #include <string>
  12. #include <ls_std/ls_std.hpp>
  13. class TestHelper
  14. {
  15. public:
  16. TestHelper() = default;
  17. ~TestHelper() = default;
  18. static std::string getResourcesFolderLocation()
  19. {
  20. return TestHelper::getTestFolderLocation() + "resources" + ls::std::io::FilePathSeparator::get();
  21. }
  22. static std::string getTestFolderLocation()
  23. {
  24. ls::std::io::File buildDirectory{ls::std::io::File::getWorkingDirectory()};
  25. return buildDirectory.getParent() + "test" + ls::std::io::FilePathSeparator::get();
  26. }
  27. };
  28. #endif