(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestApplicationPlanChangeAborted_WithReason(t *testing.T) { |
| 83 | tracker := NewFlowTracker() |
| 84 | tracker.SetStep(StepPlan) |
| 85 | |
| 86 | event := ApplicationPlanChangeAborted(DirectionUpgrade, tracker, AbortReasonAlreadyOnPlan) |
| 87 | assert.Equal(t, EventApplicationPlanChangeAborted, event.Name) |
| 88 | assert.Equal(t, DirectionUpgrade, event.Properties["direction"]) |
| 89 | assert.Equal(t, StepPlan, event.Properties["step"]) |
| 90 | assert.Equal(t, AbortReasonAlreadyOnPlan, event.Properties["reason"]) |
| 91 | } |
| 92 | |
| 93 | func TestApplicationPlanChangeAborted_WithoutReason(t *testing.T) { |
| 94 | event := ApplicationPlanChangeAborted(DirectionDowngrade, NewFlowTracker(), "") |
nothing calls this directly
no test coverage detected