Blender V4.3
util_path_test.cpp File Reference
#include "testing/testing.h"
#include "util/path.h"

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN TEST (util_path_filename, simple_unix)
 
 TEST (util_path_filename, root_unix)
 
 TEST (util_path_filename, last_slash_unix)
 
 TEST (util_path_filename, alternate_slash_unix)
 
 TEST (util_path_filename, file_only)
 
 TEST (util_path_filename, empty)
 
 TEST (util_path_dirname, simple_unix)
 
 TEST (util_path_dirname, root_unix)
 
 TEST (util_path_dirname, last_slash_unix)
 
 TEST (util_path_dirname, alternate_slash_unix)
 
 TEST (util_path_dirname, file_only)
 
 TEST (util_path_dirname, empty)
 
 TEST (util_path_join, empty_both)
 
 TEST (util_path_join, empty_directory)
 
 TEST (util_path_join, empty_filename)
 
 TEST (util_path_join, simple_unix)
 
 TEST (util_path_join, directory_slash_unix)
 
 TEST (util_path_join, filename_slash_unix)
 
 TEST (util_path_join, both_slash_unix)
 
 TEST (util_path_join, directory_alternate_slash_unix)
 
 TEST (util_path_join, filename_alternate_slash_unix)
 
 TEST (util_path_join, both_alternate_slash_unix)
 
 TEST (util_path_join, empty_dir_filename_slash_unix)
 
 TEST (util_path_join, empty_dir_filename_alternate_slash_unix)
 
 TEST (util_path_join, empty_filename_dir_slash_unix)
 
 TEST (util_path_join, empty_filename_dir_alternate_slash_unix)
 
 TEST (util_path_escape, no_escape_chars)
 
 TEST (util_path_escape, simple)
 
 TEST (util_path_escape, simple_end)
 
 TEST (util_path_escape, multiple)
 
 TEST (util_path_escape, simple_multiple_end)
 
 TEST (util_path_is_relative, filename)
 
 TEST (util_path_is_relative, absolute_unix)
 
 TEST (util_path_is_relative, relative_dir_unix)
 
 TEST (util_path_is_relative, absolute_windir_on_unix)
 
 TEST (util_path_is_relative, relative_windir_on_unix)
 

Function Documentation

◆ TEST() [1/36]

TEST ( util_path_dirname ,
alternate_slash_unix  )

Definition at line 98 of file util_path_test.cpp.

References EXPECT_EQ(), path_dirname(), and str.

◆ TEST() [2/36]

TEST ( util_path_dirname ,
empty  )

Definition at line 111 of file util_path_test.cpp.

References EXPECT_EQ(), path_dirname(), and str.

◆ TEST() [3/36]

TEST ( util_path_dirname ,
file_only  )

Definition at line 105 of file util_path_test.cpp.

References EXPECT_EQ(), path_dirname(), and str.

◆ TEST() [4/36]

TEST ( util_path_dirname ,
last_slash_unix  )

Definition at line 92 of file util_path_test.cpp.

References EXPECT_EQ(), path_dirname(), and str.

◆ TEST() [5/36]

TEST ( util_path_dirname ,
root_unix  )

Definition at line 86 of file util_path_test.cpp.

References EXPECT_EQ(), path_dirname(), and str.

◆ TEST() [6/36]

TEST ( util_path_dirname ,
simple_unix  )

Definition at line 80 of file util_path_test.cpp.

References EXPECT_EQ(), path_dirname(), and str.

◆ TEST() [7/36]

TEST ( util_path_escape ,
multiple  )

Definition at line 317 of file util_path_test.cpp.

References EXPECT_EQ(), path_escape(), and str.

◆ TEST() [8/36]

TEST ( util_path_escape ,
no_escape_chars  )

Definition at line 299 of file util_path_test.cpp.

References EXPECT_EQ(), path_escape(), and str.

◆ TEST() [9/36]

TEST ( util_path_escape ,
simple  )

Definition at line 305 of file util_path_test.cpp.

References EXPECT_EQ(), path_escape(), and str.

◆ TEST() [10/36]

TEST ( util_path_escape ,
simple_end  )

Definition at line 311 of file util_path_test.cpp.

References EXPECT_EQ(), path_escape(), and str.

◆ TEST() [11/36]

TEST ( util_path_escape ,
simple_multiple_end  )

Definition at line 323 of file util_path_test.cpp.

References EXPECT_EQ(), path_escape(), and str.

◆ TEST() [12/36]

TEST ( util_path_filename ,
alternate_slash_unix  )

Definition at line 32 of file util_path_test.cpp.

References EXPECT_EQ(), path_filename(), and str.

◆ TEST() [13/36]

TEST ( util_path_filename ,
empty  )

Definition at line 45 of file util_path_test.cpp.

References EXPECT_EQ(), path_filename(), and str.

◆ TEST() [14/36]

TEST ( util_path_filename ,
file_only  )

Definition at line 39 of file util_path_test.cpp.

References EXPECT_EQ(), path_filename(), and str.

◆ TEST() [15/36]

TEST ( util_path_filename ,
last_slash_unix  )

Definition at line 26 of file util_path_test.cpp.

References EXPECT_EQ(), path_filename(), and str.

◆ TEST() [16/36]

TEST ( util_path_filename ,
root_unix  )

Definition at line 20 of file util_path_test.cpp.

References EXPECT_EQ(), path_filename(), and str.

◆ TEST() [17/36]

CCL_NAMESPACE_BEGIN TEST ( util_path_filename ,
simple_unix  )

Definition at line 14 of file util_path_test.cpp.

References EXPECT_EQ(), path_filename(), and str.

◆ TEST() [18/36]

TEST ( util_path_is_relative ,
absolute_unix  )

Definition at line 338 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [19/36]

TEST ( util_path_is_relative ,
absolute_windir_on_unix  )

Definition at line 350 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [20/36]

TEST ( util_path_is_relative ,
filename  )

Definition at line 331 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [21/36]

TEST ( util_path_is_relative ,
relative_dir_unix  )

Definition at line 344 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [22/36]

TEST ( util_path_is_relative ,
relative_windir_on_unix  )

Definition at line 356 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [23/36]

TEST ( util_path_join ,
both_alternate_slash_unix  )

Definition at line 200 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [24/36]

TEST ( util_path_join ,
both_slash_unix  )

Definition at line 182 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [25/36]

TEST ( util_path_join ,
directory_alternate_slash_unix  )

Definition at line 188 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [26/36]

TEST ( util_path_join ,
directory_slash_unix  )

Definition at line 170 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [27/36]

TEST ( util_path_join ,
empty_both  )

Definition at line 145 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [28/36]

TEST ( util_path_join ,
empty_dir_filename_alternate_slash_unix  )

Definition at line 212 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [29/36]

TEST ( util_path_join ,
empty_dir_filename_slash_unix  )

Definition at line 206 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [30/36]

TEST ( util_path_join ,
empty_directory  )

Definition at line 151 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [31/36]

TEST ( util_path_join ,
empty_filename  )

Definition at line 157 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [32/36]

TEST ( util_path_join ,
empty_filename_dir_alternate_slash_unix  )

Definition at line 224 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [33/36]

TEST ( util_path_join ,
empty_filename_dir_slash_unix  )

Definition at line 218 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [34/36]

TEST ( util_path_join ,
filename_alternate_slash_unix  )

Definition at line 194 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [35/36]

TEST ( util_path_join ,
filename_slash_unix  )

Definition at line 176 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.

◆ TEST() [36/36]

TEST ( util_path_join ,
simple_unix  )

Definition at line 164 of file util_path_test.cpp.

References EXPECT_EQ(), path_join(), and str.