Blender  V3.3
Functions
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 97 of file util_path_test.cpp.

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

◆ TEST() [2/36]

TEST ( util_path_dirname  ,
empty   
)

Definition at line 110 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 104 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 91 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 85 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 79 of file util_path_test.cpp.

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

◆ TEST() [7/36]

TEST ( util_path_escape  ,
multiple   
)

Definition at line 316 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 298 of file util_path_test.cpp.

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

◆ TEST() [9/36]

TEST ( util_path_escape  ,
simple   
)

Definition at line 304 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 310 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 322 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 31 of file util_path_test.cpp.

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

◆ TEST() [13/36]

TEST ( util_path_filename  ,
empty   
)

Definition at line 44 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 38 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 25 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 19 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 13 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 337 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 349 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [20/36]

TEST ( util_path_is_relative  ,
filename   
)

Definition at line 330 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [21/36]

TEST ( util_path_is_relative  ,
relative_dir_unix   
)

Definition at line 343 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 355 of file util_path_test.cpp.

References path_is_relative().

◆ TEST() [23/36]

TEST ( util_path_join  ,
both_alternate_slash_unix   
)

Definition at line 199 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 181 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 187 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 169 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 144 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 211 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 205 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 150 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 156 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 223 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 217 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 193 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 175 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 163 of file util_path_test.cpp.

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