Class TaggedFieldReaderTestPBT
java.lang.Object
org.apache.kafka.common.message.TaggedFieldReaderTestPBT
Property-based tests for the tagged-field guards in the generated
for the code-generation-level assertions and
read() path (see
invalid reference
MessageDataGeneratorTest
MessageTest
for the example-based cases). A non-conforming sender must not be able to force disproportionate
heap allocation by declaring a tagged-field count the buffer cannot back.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclaredCountExceedingHardCapIsAlwaysRejected(int excess) voiddeclaredCountExceedingRemainingBytesIsAlwaysRejected(int suppliedBytes, int excess)
-
Constructor Details
-
TaggedFieldReaderTestPBT
public TaggedFieldReaderTestPBT()
-
-
Method Details
-
declaredCountExceedingRemainingBytesIsAlwaysRejected
@Property public void declaredCountExceedingRemainingBytesIsAlwaysRejected(@ForAll("smallByteCount") int suppliedBytes, @ForAll("positiveExcess") int excess) -
declaredCountExceedingHardCapIsAlwaysRejected
@Property public void declaredCountExceedingHardCapIsAlwaysRejected(@ForAll("excessOverHardCap") int excess)
-