5#include "testing/testing.h"
64 stream << value.value;
103TEST(cpp_type, DefaultConstruction)
105 int buffer[10] = {0};
125TEST(cpp_type, DefaultConstructTrivial)
134 int buffer[10] = {0};
154TEST(cpp_type, ValueInitializeTrivial)
163 int buffer[10] = {0};
183TEST(cpp_type, CopyToUninitialized)
185 int buffer1[10] = {0};
186 int buffer2[10] = {0};
216TEST(cpp_type, CopyToInitialized)
218 int buffer1[10] = {0};
219 int buffer2[10] = {0};
249TEST(cpp_type, RelocateToUninitialized)
251 int buffer1[10] = {0};
252 int buffer2[10] = {0};
282TEST(cpp_type, RelocateToInitialized)
284 int buffer1[10] = {0};
285 int buffer2[10] = {0};
318 int buffer2[10] = {0};
343TEST(cpp_type, FillUninitialized)
346 int buffer2[10] = {0};
374 std::stringstream ss;
376 std::string text = ss.str();
383 bool found_unsupported_type =
false;
384 auto fn = [&](
auto type_tag) {
385 using T =
typename decltype(type_tag)::type;
386 if constexpr (!std::is_same_v<T, void>) {
390 found_unsupported_type =
true;
395 EXPECT_FALSE(found_unsupported_type);
397 EXPECT_TRUE(found_unsupported_type);
404TEST(cpp_type, CopyAssignCompressed)
406 std::array<std::string, 5>
array = {
"a",
"b",
"c",
"d",
"e"};
407 std::array<std::string, 3> array_compressed;
#define BLI_CPP_TYPE_MAKE(TYPE_NAME, FLAGS)
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void copy_construct_n(const void *src, void *dst, int64_t n) const
void value_initialize_indices(void *ptr, const IndexMask &mask) const
void default_construct_n(void *ptr, int64_t n) const
void destruct_n(void *ptr, int64_t n) const
void copy_assign_indices(const void *src, void *dst, const IndexMask &mask) const
void fill_assign_n(const void *value, void *dst, int64_t n) const
void fill_construct_indices(const void *value, void *dst, const IndexMask &mask) const
void relocate_assign_n(void *src, void *dst, int64_t n) const
void copy_construct_indices(const void *src, void *dst, const IndexMask &mask) const
void fill_assign_indices(const void *value, void *dst, const IndexMask &mask) const
void fill_construct_n(const void *value, void *dst, int64_t n) const
void relocate_construct(void *src, void *dst) const
static const CPPType & get()
void relocate_assign_indices(void *src, void *dst, const IndexMask &mask) const
void copy_assign_n(const void *src, void *dst, int64_t n) const
void value_initialize_n(void *ptr, int64_t n) const
void destruct_indices(void *ptr, const IndexMask &mask) const
void copy_construct(const void *src, void *dst) const
void destruct(void *ptr) const
int64_t alignment() const
void default_construct_indices(void *ptr, const IndexMask &mask) const
void copy_assign(const void *src, void *dst) const
void to_static_type_tag(const Fn &fn) const
void print(const void *value, std::stringstream &ss) const
void relocate_construct_n(void *src, void *dst, int64_t n) const
void relocate_assign(void *src, void *dst) const
void default_construct(void *ptr) const
void relocate_construct_indices(void *src, void *dst, const IndexMask &mask) const
void copy_assign_compressed(const void *src, void *dst, const IndexMask &mask) const
void value_initialize(void *ptr) const
void append(const T &value)
static IndexMask from_indices(Span< T > indices, IndexMaskMemory &memory)
draw_view in_light_buf[] float
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
static const CPPType & CPPType_TestType
static const int move_assigned_from_value
static const int move_constructed_from_value
static const int move_constructed_value
static const int copy_assigned_from_value
static const int copy_constructed_from_value
static const int move_assigned_value
TEST(any, DefaultConstructor)
static const int destructed_value
static const int default_constructed_value
static const int copy_assigned_value
static const int copy_constructed_value
unsigned __int64 uint64_t
friend std::ostream & operator<<(std::ostream &stream, const TestType &value)
TestType & operator=(const TestType &other)
friend bool operator==(const TestType &, const TestType &)
TestType & operator=(TestType &&other) noexcept
TestType(TestType &&other) noexcept
TestType(const TestType &other)