public class TestOrderedBytes extends Object
Constructor and Description |
---|
TestOrderedBytes() |
Modifier and Type | Method and Description |
---|---|
void |
testBlobCopy()
Test BlobCopy encoding.
|
void |
testBlobCopyNoZeroBytes()
Assert invalid input byte[] are rejected by BlobCopy
|
void |
testBlobVar()
Test BlobVar encoding.
|
void |
testBlobVarLencodedLength()
Test length estimation algorithms for BlobVar encoding.
|
void |
testFloat32()
Test float32 encoding.
|
void |
testFloat64()
Test float64 encoding.
|
void |
testInt16()
Test int16 encoding.
|
void |
testInt32()
Test int32 encoding.
|
void |
testInt64()
Test int64 encoding.
|
void |
testInt8()
Test int8 encoding.
|
void |
testNumericInt()
Test integer encoding.
|
void |
testNumericIntRealCompatibility()
Verify Real and Int encodings are compatible.
|
void |
testNumericOther()
Fill gaps in Numeric encoding testing.
|
void |
testNumericReal()
Test real encoding.
|
void |
testSkip()
Test generic skip logic
|
void |
testString()
Test string encoding.
|
void |
testStringNoNullChars() |
void |
testVaruint64Boundaries()
Tests the variable uint64 encoding.
|
void |
testVerifyTestIntegrity()
Expected lengths of equivalent values should match
|
public void testVerifyTestIntegrity()
public void testVaruint64Boundaries()
Building sqlite4 with -DVARINT_TOOL provides this reference:
$ ./varint_tool 240 2287 67823 16777215 4294967295 1099511627775
281474976710655 72057594037927935 18446744073709551615
240 = f0
2287 = f8ff
67823 = f9ffff
16777215 = faffffff
4294967295 = fbffffffff
1099511627775 = fcffffffffff
281474976710655 = fdffffffffffff
72057594037927935 = feffffffffffffff
9223372036854775807 = ff7fffffffffffffff (Long.MAX_VAL)
9223372036854775808 = ff8000000000000000 (Long.MIN_VAL)
18446744073709551615 = ffffffffffffffffff
public void testNumericInt()
public void testNumericReal()
public void testNumericOther()
public void testNumericIntRealCompatibility()
public void testInt8()
public void testInt16()
public void testInt32()
public void testInt64()
public void testFloat32()
public void testFloat64()
public void testString()
public void testStringNoNullChars()
public void testBlobVarLencodedLength()
public void testBlobVar()
public void testBlobCopy()
public void testBlobCopyNoZeroBytes()
public void testSkip()