Blender  V3.3
Functions
blender::bke::cryptomatte::tests Namespace Reference

Functions

 TEST (cryptomatte, meta_data_key)
 
 TEST (cryptomatte, extract_layer_name)
 
 TEST (cryptomatte, layer)
 
 TEST (cryptomatte, layer_quoted)
 
static void test_cryptomatte_manifest (std::string expected, std::string manifest)
 
 TEST (cryptomatte, layer_from_manifest)
 
 R ({"Object\"01\"":"12345678"})")
 
 test_cryptomatte_manifest (R"({"Object\"01\"":"12345678","Object":"12345678","Object2":"87654321"})", R"({"Object\"01\"":"12345678","Object":"12345678", "Object2":"87654321"})")
 
 TEST (cryptomatte, extract_layer_hash_from_metadata_key)
 
static void validate_cryptomatte_session_from_stamp_data (void *UNUSED(data), const char *propname, char *propvalue, int UNUSED(len))
 
 TEST (cryptomatte, session_from_stamp_data)
 
 TEST (cryptomatte, parsing_malformed_manifests)
 

Function Documentation

◆ R()

blender::bke::cryptomatte::tests::R ( {"Object\"01\"":"12345678"}  )

◆ TEST() [1/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
extract_layer_hash_from_metadata_key   
)

◆ TEST() [2/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
extract_layer_name   
)

◆ TEST() [3/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
layer   
)

◆ TEST() [4/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
layer_from_manifest   
)

Definition at line 60 of file cryptomatte_test.cc.

References test_cryptomatte_manifest().

◆ TEST() [5/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
layer_quoted   
)

◆ TEST() [6/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
meta_data_key   
)

◆ TEST() [7/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
parsing_malformed_manifests   
)

Test method that contains known malformed manifests and makes sure that these can be parsed as best as possible.

Definition at line 164 of file cryptomatte_test.cc.

References test_cryptomatte_manifest().

◆ TEST() [8/8]

blender::bke::cryptomatte::tests::TEST ( cryptomatte  ,
session_from_stamp_data   
)

◆ test_cryptomatte_manifest() [1/2]

blender::bke::cryptomatte::tests::test_cryptomatte_manifest ( R"({"Object\"01\"":"12345678","Object":"12345678","Object2":"87654321"})"  ,
R"({"Object\"01\"":"12345678","Object":"12345678", "Object2":"87654321"})"   
)

◆ test_cryptomatte_manifest() [2/2]

static void blender::bke::cryptomatte::tests::test_cryptomatte_manifest ( std::string  expected,
std::string  manifest 
)
static

◆ validate_cryptomatte_session_from_stamp_data()

static void blender::bke::cryptomatte::tests::validate_cryptomatte_session_from_stamp_data ( void UNUSEDdata,
const char *  propname,
char *  propvalue,
int   UNUSEDlen 
)
static

Definition at line 91 of file cryptomatte_test.cc.

References EXPECT_EQ(), and blender::StringRefBase::startswith().

Referenced by TEST().