98
}
99
100
>
func (h HistoryRequire) EqualHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEvents []*historypb.HistoryEvent) {
history_require.go
101
>
if th, ok := h.t.(helper); ok {
102
>
th.Helper()
103
>
}
104
105
>
expectedHistoryEvents, expectedEventsAttributes := h.parseHistory(expectedHistorySuffix)
history_require.go
106
>
107
>
require.GreaterOrEqualf(h.t, len(actualHistoryEvents), len(expectedHistoryEvents),
108
>
"Length of actual history(%d) must be greater or equal to the length of expected history suffix(%d) - actual history: \n%v",
109
>
len(actualHistoryEvents), len(expectedHistoryEvents), h.formatHistoryEvents(actualHistoryEvents, true))
110
>
111
>
h.equalHistoryEvents(expectedHistoryEvents, expectedEventsAttributes, actualHistoryEvents[len(actualHistoryEvents)-len(expectedHistoryEvents):])
112
}
113