MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TEST_F

Function TEST_F

valdi_protobuf/test/Field_tests.cpp:147–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145};
146
147TEST_F(FieldTest, supportsInt32) {
148 testField(0, &Protobuf::Field::setInt32, &Protobuf::Field::getInt32, &WireFormat::WriteInt32);
149 testField(42, &Protobuf::Field::setInt32, &Protobuf::Field::getInt32, &WireFormat::WriteInt32);
150 testField(-42, &Protobuf::Field::setInt32, &Protobuf::Field::getInt32, &WireFormat::WriteInt32);
151}
152
153TEST_F(FieldTest, supportsSInt32) {
154 testField(0, &Protobuf::Field::setSInt32, &Protobuf::Field::getSInt32, &WireFormat::WriteSInt32);

Callers

nothing calls this directly

Calls 15

writeRepeatedFieldFunction · 0.85
setRawMethod · 0.80
getRawMethod · 0.80
setStringMethod · 0.80
use_countMethod · 0.80
setTypedArrayMethod · 0.80
setInt32Method · 0.80
setFloatMethod · 0.80
setDoubleMethod · 0.80
setMessageMethod · 0.80
getMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected