chore: remove debug print statements from tests
This commit is contained in:
parent
8dc23e5573
commit
32f449c66a
@ -11,8 +11,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestSSTableWriteRead(t *testing.T) {
|
func TestSSTableWriteRead(t *testing.T) {
|
||||||
fmt.Println("===== Starting TestSSTableWriteRead =====")
|
|
||||||
defer fmt.Println("===== TestSSTableWriteRead Done =====")
|
|
||||||
// Create a temporary directory for the test
|
// Create a temporary directory for the test
|
||||||
tempDir := t.TempDir()
|
tempDir := t.TempDir()
|
||||||
sstablePath := filepath.Join(tempDir, "test.sst")
|
sstablePath := filepath.Join(tempDir, "test.sst")
|
||||||
@ -124,8 +122,6 @@ func TestSSTableWriteRead(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSSTableIterator(t *testing.T) {
|
func TestSSTableIterator(t *testing.T) {
|
||||||
fmt.Println("===== Starting TestSSTableIterator =====")
|
|
||||||
defer fmt.Println("===== TestSSTableIterator Done =====")
|
|
||||||
// Create a temporary directory for the test
|
// Create a temporary directory for the test
|
||||||
tempDir := t.TempDir()
|
tempDir := t.TempDir()
|
||||||
sstablePath := filepath.Join(tempDir, "test-iterator.sst")
|
sstablePath := filepath.Join(tempDir, "test-iterator.sst")
|
||||||
@ -163,13 +159,6 @@ func TestSSTableIterator(t *testing.T) {
|
|||||||
t.Fatalf("Failed to finish SSTable: %v", err)
|
t.Fatalf("Failed to finish SSTable: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print basic file info before opening
|
|
||||||
fileInfo, err := os.Stat(sstablePath)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Failed to stat SSTable file: %v", err)
|
|
||||||
}
|
|
||||||
fmt.Printf("DEBUG: SSTable file size before opening: %d bytes\n", fileInfo.Size())
|
|
||||||
|
|
||||||
// Open the SSTable for reading
|
// Open the SSTable for reading
|
||||||
reader, err := OpenReader(sstablePath)
|
reader, err := OpenReader(sstablePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -177,10 +166,6 @@ func TestSSTableIterator(t *testing.T) {
|
|||||||
}
|
}
|
||||||
defer reader.Close()
|
defer reader.Close()
|
||||||
|
|
||||||
// Debug basic reader info
|
|
||||||
fmt.Printf("DEBUG: Reader metadata - indexOffset=%d, indexSize=%d, numEntries=%d\n",
|
|
||||||
reader.indexOffset, reader.indexSize, reader.numEntries)
|
|
||||||
|
|
||||||
// Print detailed information about the index
|
// Print detailed information about the index
|
||||||
t.Log("### SSTable Index Details ###")
|
t.Log("### SSTable Index Details ###")
|
||||||
indexIter := reader.indexBlock.Iterator()
|
indexIter := reader.indexBlock.Iterator()
|
||||||
|
Loading…
Reference in New Issue
Block a user