builder_test.go
builder_test.go - Overview
This file contains unit tests and benchmarks for the table
package, specifically focusing on the TableBuilder
functionality, including index creation, compression, encryption, and bloom filter usage.
Detailed Documentation
TestTableIndex
- Purpose: Tests the creation and correctness of the table index, including cases with and without encryption and compression.
- Parameters:
t
:*testing.T
- Testing object for running tests.
- Returns: None
TestInvalidCompression
- Purpose: Tests the behavior of opening a table with an incorrect compression algorithm.
- Parameters:
t
:*testing.T
- Testing object for running tests.
- Returns: None
BenchmarkBuilder
- Purpose: Benchmarks the
TableBuilder
performance with different compression and encryption options. - Parameters:
b
:*testing.B
- Benchmarking object for running benchmarks.
- Returns: None
TestBloomfilter
- Purpose: Tests the creation and usage of bloom filters in tables.
- Parameters:
t
:*testing.T
- Testing object for running tests.
- Returns: None
TestEmptyBuilder
- Purpose: Tests creating an empty table builder and finalizing it.
- Parameters:
t
:*testing.T
- Testing object for running tests.
- Returns: None