@Test public void testRegisterByteSizeObserver() throws Exception { CoderProperties.testByteCount( ByteArrayCoder.of(), Coder.Context.OUTER, new byte[][] {{0xa, 0xb, 0xc}}); CoderProperties.testByteCount( ByteArrayCoder.of(), Coder.Context.NESTED, new byte[][] {{0xa, 0xb, 0xc}, {}, {}, {0xd, 0xe}, {}}); }
@Test public void testRegisterByteSizeObserver() throws Exception { CoderProperties.testByteCount( ByteArrayCoder.of(), Coder.Context.OUTER, new byte[][] {{0xa, 0xb, 0xc}}); CoderProperties.testByteCount( ByteArrayCoder.of(), Coder.Context.NESTED, new byte[][] {{0xa, 0xb, 0xc}, {}, {}, {0xd, 0xe}, {}}); }
@Test public void testRegisterByteSizeObserver() throws Exception { CoderProperties.testByteCount( LengthPrefixCoder.of(VarIntCoder.of()), Coder.Context.NESTED, new Integer[] {0, 10, 1000}); }