|
Blender
V3.3
|
#include "testing/testing.h"#include "IMB_imbuf.h"#include "BLI_fileops.h"#include "BLI_path_util.h"#include "BLI_string.h"Go to the source code of this file.
Macros | |
| #define | AT_INDEX(str_input, index_input, str_expect) |
| #define | JOIN(str_expect, out_size, ...) |
| #define | PATH_FRAME_STRIP(input_path, expect_path, expect_ext) |
| #define | PATH_EXTENSION_CHECK(input_path, input_ext, expect_ext) |
| #define | PATH_FRAME_CHECK_CHARS(input_path, expect_hasChars) |
| #define | PATH_FRAME_RANGE(input_path, sta, end, digits, expect_outpath) |
| #define | PATH_FRAME_GET(input_path, expect_frame, expect_numdigits, expect_pathisvalid) |
| #define | PATH_REL(abs_path, ref_path, rel_path) |
Functions | |
| TEST (path_util, Clean) | |
| TEST (path_util, NameAtIndex_Single) | |
| TEST (path_util, NameAtIndex_SingleNeg) | |
| TEST (path_util, NameAtIndex_Double) | |
| TEST (path_util, NameAtIndex_DoublNeg) | |
| TEST (path_util, NameAtIndex_Misc) | |
| TEST (path_util, NameAtIndex_MiscNeg) | |
| TEST (path_util, NameAtIndex_MiscComplex) | |
| TEST (path_util, NameAtIndex_MiscComplexNeg) | |
| TEST (path_util, NameAtIndex_NoneComplex) | |
| TEST (path_util, NameAtIndex_NoneComplexNeg) | |
| TEST (path_util, JoinNop) | |
| TEST (path_util, JoinSingle) | |
| TEST (path_util, JoinTriple) | |
| TEST (path_util, JoinTruncateShort) | |
| TEST (path_util, JoinTruncateLong) | |
| TEST (path_util, JoinComplex) | |
| TEST (path_util, Frame) | |
| TEST (path_util, SplitDirfile) | |
| TEST (path_util, PathFrameStrip) | |
| TEST (path_util, PathExtensionCheck) | |
| TEST (path_util, PathFrameCheckChars) | |
| TEST (path_util, PathFrameRange) | |
| TEST (path_util, PathFrameGet) | |
| TEST (path_util, PathExtension) | |
| TEST (path_util, PathRelPath) | |
| TEST (path_util, PathContains) | |
| #define AT_INDEX | ( | str_input, | |
| index_input, | |||
| str_expect | |||
| ) |
Definition at line 72 of file BLI_path_util_test.cc.
| #define JOIN | ( | str_expect, | |
| out_size, | |||
| ... | |||
| ) |
Definition at line 204 of file BLI_path_util_test.cc.
| #define PATH_EXTENSION_CHECK | ( | input_path, | |
| input_ext, | |||
| expect_ext | |||
| ) |
Definition at line 459 of file BLI_path_util_test.cc.
| #define PATH_FRAME_CHECK_CHARS | ( | input_path, | |
| expect_hasChars | |||
| ) |
Definition at line 497 of file BLI_path_util_test.cc.
| #define PATH_FRAME_GET | ( | input_path, | |
| expect_frame, | |||
| expect_numdigits, | |||
| expect_pathisvalid | |||
| ) |
Definition at line 561 of file BLI_path_util_test.cc.
| #define PATH_FRAME_RANGE | ( | input_path, | |
| sta, | |||
| end, | |||
| digits, | |||
| expect_outpath | |||
| ) |
Definition at line 529 of file BLI_path_util_test.cc.
| #define PATH_FRAME_STRIP | ( | input_path, | |
| expect_path, | |||
| expect_ext | |||
| ) |
| #define PATH_REL | ( | abs_path, | |
| ref_path, | |||
| rel_path | |||
| ) |
Definition at line 607 of file BLI_path_util_test.cc.
| TEST | ( | path_util | , |
| Clean | |||
| ) |
Definition at line 16 of file BLI_path_util_test.cc.
References BLI_path_normalize(), and FILE_MAX.
| TEST | ( | path_util | , |
| Frame | |||
| ) |
Definition at line 304 of file BLI_path_util_test.cc.
References BLI_path_frame(), FILE_MAX, and ret.
| TEST | ( | path_util | , |
| JoinComplex | |||
| ) |
Definition at line 294 of file BLI_path_util_test.cc.
References JOIN.
| TEST | ( | path_util | , |
| JoinNop | |||
| ) |
Definition at line 219 of file BLI_path_util_test.cc.
References JOIN.
| TEST | ( | path_util | , |
| JoinSingle | |||
| ) |
Definition at line 230 of file BLI_path_util_test.cc.
References JOIN.
| TEST | ( | path_util | , |
| JoinTriple | |||
| ) |
Definition at line 242 of file BLI_path_util_test.cc.
References JOIN.
| TEST | ( | path_util | , |
| JoinTruncateLong | |||
| ) |
Definition at line 274 of file BLI_path_util_test.cc.
References JOIN.
| TEST | ( | path_util | , |
| JoinTruncateShort | |||
| ) |
Definition at line 257 of file BLI_path_util_test.cc.
References JOIN.
| TEST | ( | path_util | , |
| NameAtIndex_Double | |||
| ) |
Definition at line 118 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_DoublNeg | |||
| ) |
Definition at line 132 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_Misc | |||
| ) |
Definition at line 146 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_MiscComplex | |||
| ) |
Definition at line 166 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_MiscComplexNeg | |||
| ) |
Definition at line 176 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_MiscNeg | |||
| ) |
Definition at line 156 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_NoneComplex | |||
| ) |
Definition at line 186 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_NoneComplexNeg | |||
| ) |
Definition at line 194 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_Single | |||
| ) |
Definition at line 91 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| NameAtIndex_SingleNeg | |||
| ) |
Definition at line 104 of file BLI_path_util_test.cc.
References AT_INDEX.
| TEST | ( | path_util | , |
| PathContains | |||
| ) |
Definition at line 660 of file BLI_path_util_test.cc.
References BLI_path_contains().
| TEST | ( | path_util | , |
| PathExtension | |||
| ) |
Definition at line 591 of file BLI_path_util_test.cc.
References BLI_path_extension(), and EXPECT_EQ().
| TEST | ( | path_util | , |
| PathExtensionCheck | |||
| ) |
Definition at line 472 of file BLI_path_util_test.cc.
References PATH_EXTENSION_CHECK.
| TEST | ( | path_util | , |
| PathFrameCheckChars | |||
| ) |
Definition at line 510 of file BLI_path_util_test.cc.
References PATH_FRAME_CHECK_CHARS.
| TEST | ( | path_util | , |
| PathFrameGet | |||
| ) |
Definition at line 579 of file BLI_path_util_test.cc.
References PATH_FRAME_GET.
| TEST | ( | path_util | , |
| PathFrameRange | |||
| ) |
Definition at line 546 of file BLI_path_util_test.cc.
References PATH_FRAME_RANGE.
| TEST | ( | path_util | , |
| PathFrameStrip | |||
| ) |
Definition at line 448 of file BLI_path_util_test.cc.
References PATH_FRAME_STRIP.
| TEST | ( | path_util | , |
| PathRelPath | |||
| ) |
Definition at line 616 of file BLI_path_util_test.cc.
| TEST | ( | path_util | , |
| SplitDirfile | |||
| ) |
Definition at line 381 of file BLI_path_util_test.cc.
References BLI_split_dirfile(), file, and FILE_MAX.