TestHelper.hpp 883 B

1234567891011121314151617181920212223242526272829303132333435363738
  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-14
  7. *
  8. * */
  9. #ifndef LS_STD_IO_TEST_HELPER_HPP
  10. #define LS_STD_IO_TEST_HELPER_HPP
  11. #include <string>
  12. #include <ls_std/ls_std_io.hpp>
  13. namespace ls_std_io_test
  14. {
  15. class TestHelper
  16. {
  17. public:
  18. TestHelper() = default;
  19. ~TestHelper() = default;
  20. static std::string getResourcesFolderLocation()
  21. {
  22. return TestHelper::getTestFolderLocation() + "resources" + ls::std::io::FilePathSeparator::get();
  23. }
  24. static std::string getTestFolderLocation()
  25. {
  26. ls::std::io::File buildDirectory{ls::std::io::File::getWorkingDirectory()};
  27. return buildDirectory.getParent() + "test" + ls::std::io::FilePathSeparator::get();
  28. }
  29. };
  30. }
  31. #endif