Files
Project_CTR/ctrtool/deps/libtoolchain/test/io_BasicPathResolver_TestClass.h
2022-04-16 21:27:49 +08:00

20 lines
754 B
C++

#pragma once
#include "ITestClass.h"
#include <tc/io/Path.h>
class io_BasicPathResolver_TestClass : public ITestClass
{
public:
void runAllTests();
private:
void test_EmptyStateAfterDefaultConstructor();
void test_setCurrentDirectory();
void test_setExplicitRootLabels();
void test_ResolveRootDirRelativePaths();
void test_ResolveWorkingDirectoryRelativePaths();
void test_ResolvePathsWithCustomRootLabels();
void util_RunResolutionTest(const tc::io::Path& in_path, const tc::io::Path& in_working_dir_path, const tc::io::Path& expected_resolved_path);
void util_RunResolutionTest(const tc::io::Path& in_path, const tc::io::Path& in_working_dir_path, const std::vector<std::string>& root_labels, const tc::io::Path& expected_resolved_path);
};