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
|
|
@ -33,9 +33,9 @@ func TestDataLoader_LoadOpenFlightsAirlines(t *testing.T) {
|
|||
result, err := loader.LoadDataSource(source)
|
||||
if err != nil {
|
||||
// Network issues in tests are acceptable
|
||||
if strings.Contains(err.Error(), "connection") ||
|
||||
strings.Contains(err.Error(), "timeout") ||
|
||||
strings.Contains(err.Error(), "no such host") {
|
||||
if strings.Contains(err.Error(), "connection") ||
|
||||
strings.Contains(err.Error(), "timeout") ||
|
||||
strings.Contains(err.Error(), "no such host") {
|
||||
t.Skipf("Skipping network test due to connectivity issue: %v", err)
|
||||
}
|
||||
t.Fatal("LoadDataSource failed:", err)
|
||||
|
|
@ -45,7 +45,7 @@ func TestDataLoader_LoadOpenFlightsAirlines(t *testing.T) {
|
|||
t.Fatal("Expected load result, got nil")
|
||||
}
|
||||
|
||||
t.Logf("Loaded airlines: Total=%d, New=%d, Errors=%d, Duration=%v",
|
||||
t.Logf("Loaded airlines: Total=%d, New=%d, Errors=%d, Duration=%v",
|
||||
result.RecordsTotal, result.RecordsNew, result.RecordsError, result.Duration)
|
||||
|
||||
// Verify some data was processed
|
||||
|
|
@ -72,16 +72,16 @@ func TestDataLoader_LoadOurAirports(t *testing.T) {
|
|||
result, err := loader.LoadDataSource(source)
|
||||
if err != nil {
|
||||
// Network issues in tests are acceptable
|
||||
if strings.Contains(err.Error(), "connection") ||
|
||||
strings.Contains(err.Error(), "timeout") ||
|
||||
strings.Contains(err.Error(), "no such host") {
|
||||
if strings.Contains(err.Error(), "connection") ||
|
||||
strings.Contains(err.Error(), "timeout") ||
|
||||
strings.Contains(err.Error(), "no such host") {
|
||||
t.Skipf("Skipping network test due to connectivity issue: %v", err)
|
||||
}
|
||||
t.Fatal("LoadDataSource failed:", err)
|
||||
}
|
||||
|
||||
if result != nil {
|
||||
t.Logf("Loaded airports: Total=%d, New=%d, Errors=%d, Duration=%v",
|
||||
t.Logf("Loaded airports: Total=%d, New=%d, Errors=%d, Duration=%v",
|
||||
result.RecordsTotal, result.RecordsNew, result.RecordsError, result.Duration)
|
||||
}
|
||||
}
|
||||
|
|
@ -174,4 +174,4 @@ func TestLoadResult_Struct(t *testing.T) {
|
|||
if len(result.Errors) != 2 {
|
||||
t.Error("Errors field not preserved")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue