Skip to content

Commit 09bb860

Browse files
committed
feat: Enhance diff utilities and tests for configuration changes
- Updated `diff_utils.go` to improve variable naming and output formatting for configuration changes, including renaming version fields for clarity. - Added initialization of global variables in `diff_test.go` to ensure proper test setup. - Introduced a utility function to capture stdout during tests, enhancing output validation in `diff_versions_test.go`. - Updated test cases to reflect changes in output formatting, ensuring consistency in configuration change summaries.
1 parent 71aa011 commit 09bb860

File tree

4 files changed

+378
-322
lines changed

4 files changed

+378
-322
lines changed

cmd/diff_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ func TestRunServerDiff(t *testing.T) {
201201
}
202202

203203
func TestDiffFlatMaps(t *testing.T) {
204+
if err := InitializeGlobals(); err != nil {
205+
t.Fatalf("Failed to initialize globals for testing: %v", err)
206+
}
207+
204208
testCases := []struct {
205209
name string
206210
m1 map[string]any

0 commit comments

Comments
 (0)