84
}
85
86
>
func (h HistoryRequire) EqualHistoryEvents(expectedHistory string, actualHistoryEvents []*historypb.HistoryEvent) {
history_require.go
87
>
if th, ok := h.t.(helper); ok {
88
>
th.Helper()
89
>
}
90
91
>
expectedHistoryEvents, expectedEventsAttributes := h.parseHistory(expectedHistory)
history_require.go
92
>
93
>
require.Lenf(h.t, actualHistoryEvents, len(expectedHistoryEvents),
94
>
"Length of expected(%d) and actual(%d) histories is not equal - actual history: \n%v",
95
>
len(expectedHistoryEvents), len(actualHistoryEvents), h.formatHistoryEvents(actualHistoryEvents, true))
96
>
97
>
h.equalHistoryEvents(expectedHistoryEvents, expectedEventsAttributes, actualHistoryEvents)
98
}
99