type fakeHistoryViewer … func (h *fakeHistoryViewer) ViewHistory(namespace, name string, revision int64) (string, error) { … } func (h *fakeHistoryViewer) GetHistory(namespace, name string) (map[int64]runtime.Object, error) { … } func setupFakeHistoryViewer(t *testing.T) *fakeHistoryViewer { … } func TestRolloutHistory(t *testing.T) { … } func TestMultipleResourceRolloutHistory(t *testing.T) { … } func TestRolloutHistoryWithOutput(t *testing.T) { … } func TestValidate(t *testing.T) { … }