style: Apply code formatting with go fmt
- Run 'make format' to ensure all Go code follows standard formatting - Maintains consistent code style across the entire codebase - No functional changes, only whitespace and formatting improvements
This commit is contained in:
parent
4fd0846127
commit
2bffa2c418
19 changed files with 543 additions and 527 deletions
|
|
@ -221,13 +221,13 @@ func TestOptimizationManager_InvalidPath(t *testing.T) {
|
|||
func TestOptimizationStats_JSON(t *testing.T) {
|
||||
stats := &OptimizationStats{
|
||||
DatabaseSize: 1024000,
|
||||
PageSize: 4096,
|
||||
PageCount: 250,
|
||||
UsedPages: 200,
|
||||
FreePages: 50,
|
||||
Efficiency: 80.0,
|
||||
PageSize: 4096,
|
||||
PageCount: 250,
|
||||
UsedPages: 200,
|
||||
FreePages: 50,
|
||||
Efficiency: 80.0,
|
||||
AutoVacuumEnabled: true,
|
||||
LastVacuum: time.Now(),
|
||||
LastVacuum: time.Now(),
|
||||
}
|
||||
|
||||
// Test that all fields are accessible
|
||||
|
|
@ -286,9 +286,9 @@ func TestOptimizationManager_WithRealData(t *testing.T) {
|
|||
}
|
||||
|
||||
// Compare efficiency
|
||||
t.Logf("Optimization results: %.2f%% → %.2f%% efficiency",
|
||||
t.Logf("Optimization results: %.2f%% → %.2f%% efficiency",
|
||||
statsBefore.Efficiency, statsAfter.Efficiency)
|
||||
|
||||
|
||||
// After optimization, we should have auto-vacuum enabled
|
||||
if !statsAfter.AutoVacuumEnabled {
|
||||
t.Error("Auto-vacuum should be enabled after optimization")
|
||||
|
|
@ -304,4 +304,4 @@ func TestOptimizationManager_WithRealData(t *testing.T) {
|
|||
if count == 0 {
|
||||
t.Error("Data lost during optimization")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue