112
}
113
114
>
func (h HistoryRequire) EqualHistoryEventsPrefix(expectedHistoryPrefix string, actualHistoryEvents []*historypb.HistoryEvent) {
history_require.go
115
>
if th, ok := h.t.(helper); ok {
116
>
th.Helper()
117
>
}
118
119
>
expectedHistoryEvents, expectedEventsAttributes := h.parseHistory(expectedHistoryPrefix)
history_require.go
120
>
121
>
require.GreaterOrEqualf(h.t, len(actualHistoryEvents), len(expectedHistoryEvents),
122
>
"Length of actual history(%d) must be greater or equal to the length of expected history prefix(%d) - actual history: \n%v",
123
>
len(actualHistoryEvents), len(expectedHistoryEvents), h.formatHistoryEvents(actualHistoryEvents, true))
124
>
125
>
h.equalHistoryEvents(expectedHistoryEvents, expectedEventsAttributes, actualHistoryEvents[:len(expectedHistoryEvents)])
126
}
127