| 32 | }; |
| 33 | |
| 34 | TEST_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 | |
| 51 | TEST_F(TestProtobufDescriptor, TestArrayP) { |
| 52 | auto Int = std::make_shared<Type>(Type::TypeID_Integer); |
nothing calls this directly
no test coverage detected