@@ -65,3 +65,33 @@ func TestUnitShouldWarnRedis8Modules_Redis10WithModules(t *testing.T) {
6565 result := shouldWarnRedis8Modules ("10.0.0" , true )
6666 assert .True (t , result , "should warn for Redis 10.0.0 with modules (modules bundled in 8.0+)" )
6767}
68+
69+ // TestUnitShouldSuppressModuleDiffsForRedis8_Redis8 tests that module diffs are suppressed for Redis 8.0
70+ func TestUnitShouldSuppressModuleDiffsForRedis8_Redis8 (t * testing.T ) {
71+ result := shouldSuppressModuleDiffsForRedis8 ("8.0" )
72+ assert .True (t , result , "should suppress module diffs for Redis 8.0" )
73+ }
74+
75+ // TestUnitShouldSuppressModuleDiffsForRedis8_Redis82 tests that module diffs are suppressed for Redis 8.2
76+ func TestUnitShouldSuppressModuleDiffsForRedis8_Redis82 (t * testing.T ) {
77+ result := shouldSuppressModuleDiffsForRedis8 ("8.2" )
78+ assert .True (t , result , "should suppress module diffs for Redis 8.2" )
79+ }
80+
81+ // TestUnitShouldSuppressModuleDiffsForRedis8_Redis9 tests that module diffs are suppressed for Redis 9.0
82+ func TestUnitShouldSuppressModuleDiffsForRedis8_Redis9 (t * testing.T ) {
83+ result := shouldSuppressModuleDiffsForRedis8 ("9.0" )
84+ assert .True (t , result , "should suppress module diffs for Redis 9.0" )
85+ }
86+
87+ // TestUnitShouldSuppressModuleDiffsForRedis8_Redis7 tests that module diffs are NOT suppressed for Redis 7.x
88+ func TestUnitShouldSuppressModuleDiffsForRedis8_Redis7 (t * testing.T ) {
89+ result := shouldSuppressModuleDiffsForRedis8 ("7.4" )
90+ assert .False (t , result , "should not suppress module diffs for Redis 7.4" )
91+ }
92+
93+ // TestUnitShouldSuppressModuleDiffsForRedis8_Redis6 tests that module diffs are NOT suppressed for Redis 6.x
94+ func TestUnitShouldSuppressModuleDiffsForRedis8_Redis6 (t * testing.T ) {
95+ result := shouldSuppressModuleDiffsForRedis8 ("6.2" )
96+ assert .False (t , result , "should not suppress module diffs for Redis 6.2" )
97+ }
0 commit comments