Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -0,0 +1,20 @@
#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);
};