@@ -3197,7 +3197,6 @@ func (m *MockCmabService) GetDecision(projectConfig config.ProjectConfig, userCo
31973197 return decision , args .Error (1 )
31983198}
31993199
3200-
32013200func TestHandleDecisionServiceError (t * testing.T ) {
32023201 client := OptimizelyClient {
32033202 logger : logging .GetLogger ("" , "" ),
@@ -3380,13 +3379,11 @@ func TestDecideWithCmabUUID(t *testing.T) {
33803379 // This should cover the CMAB UUID handling lines
33813380}
33823381
3383-
33843382func (m * MockProjectConfig ) GetExperimentByID (experimentID string ) (entities.Experiment , error ) {
33853383 args := m .Called (experimentID )
33863384 return args .Get (0 ).(entities.Experiment ), args .Error (1 )
33873385}
33883386
3389-
33903387func TestClientTestSuiteAB (t * testing.T ) {
33913388 suite .Run (t , new (ClientTestSuiteAB ))
33923389}
@@ -3454,7 +3451,7 @@ func TestHandleDecisionServiceError_MoreCoverage(t *testing.T) {
34543451 for _ , tt := range tests {
34553452 t .Run (tt .name , func (t * testing.T ) {
34563453 result := client .handleDecisionServiceError (tt .err , tt .key , userContext )
3457-
3454+
34583455 assert .Equal (t , tt .expected .FlagKey , result .FlagKey )
34593456 assert .Equal (t , tt .expected .UserContext , result .UserContext )
34603457 assert .Equal (t , tt .expected .VariationKey , result .VariationKey )
@@ -3483,10 +3480,10 @@ func TestGetAllOptionsWithCMABOptions(t *testing.T) {
34833480 result := client .getAllOptions (userOptions )
34843481
34853482 // Verify all CMAB-related options are properly merged
3486- assert .True (t , result .DisableDecisionEvent ) // from default
3487- assert .True (t , result .IgnoreCMABCache ) // from default
3488- assert .True (t , result .ResetCMABCache ) // from user
3483+ assert .True (t , result .DisableDecisionEvent ) // from default
3484+ assert .True (t , result .IgnoreCMABCache ) // from default
3485+ assert .True (t , result .ResetCMABCache ) // from user
34893486 assert .True (t , result .InvalidateUserCMABCache ) // from user
3490- assert .False (t , result .EnabledFlagsOnly ) // neither
3491- assert .False (t , result .ExcludeVariables ) // neither
3487+ assert .False (t , result .EnabledFlagsOnly ) // neither
3488+ assert .False (t , result .ExcludeVariables ) // neither
34923489}
0 commit comments