MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / TEST

Function TEST

src/base/path_tests.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace base;
12
13TEST(Path, IsPathSeparator)
14{
15 EXPECT_TRUE (is_path_separator('\\'));
16 EXPECT_TRUE (is_path_separator('/'));
17 EXPECT_FALSE(is_path_separator('a'));
18 EXPECT_FALSE(is_path_separator('+'));
19 EXPECT_FALSE(is_path_separator(':'));
20}
21
22TEST(Path, GetFilePath)
23{

Callers

nothing calls this directly

Calls 9

is_path_separatorFunction · 0.85
get_file_pathFunction · 0.85
get_file_nameFunction · 0.85
get_file_extensionFunction · 0.85
get_file_titleFunction · 0.85
join_pathFunction · 0.85
remove_path_separatorFunction · 0.85
has_file_extensionFunction · 0.85
compare_filenamesFunction · 0.85

Tested by

no test coverage detected