MCPcopy Create free account
hub / github.com/Samsung/UTopia / TEST_F

Function TEST_F

tests/generation/TestProtobufDescriptor.cpp:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34TEST_F(TestProtobufDescriptor, TestPrimitiveP) {
35 Type Int(Type::TypeID_Integer);
36 Type Float(Type::TypeID_Float);
37 Type Bool(Type::TypeID_Integer);
38 Bool.setBoolean(true);
39 Type UInt(Type::TypeID_Integer);
40 UInt.setUnsigned(true);
41 Type Long(Type::TypeID_Integer);
42 Long.setTypeSize(8);
43 Descriptor->addField(Int, "int_var");
44 Descriptor->addField(Float, "float_var");
45 Descriptor->addField(Bool, "bool_var");
46 Descriptor->addField(UInt, "unsigned_int_var");
47 Descriptor->addField(Long, "long_var");
48 verifyProto();
49}
50
51TEST_F(TestProtobufDescriptor, TestArrayP) {
52 auto Int = std::make_shared<Type>(Type::TypeID_Integer);

Callers

nothing calls this directly

Calls 13

setBooleanMethod · 0.80
setUnsignedMethod · 0.80
setTypeSizeMethod · 0.80
addFieldMethod · 0.80
setLengthTypeMethod · 0.80
setMaxLengthMethod · 0.80
setPointeeTypeMethod · 0.80
setPtrKindMethod · 0.80
setArrayInfoMethod · 0.80
setTypeNameMethod · 0.80
setGlobalDefMethod · 0.80
genProtoFileMethod · 0.80

Tested by

no test coverage detected