MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_data_path

Method get_data_path

tests/test_utils.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#include "core/os/os.h"
37
38String TestUtils::get_data_path(const String &p_file) {
39 String data_path = "../tests/data";
40 return get_executable_dir().path_join(data_path.path_join(p_file));
41}
42
43String TestUtils::get_executable_dir() {
44 return OS::get_singleton()->get_executable_path().get_base_dir();

Callers 1

test_os.hFile · 0.45

Calls 1

path_joinMethod · 0.80

Tested by

no test coverage detected