// AssertActions asserts the actual actions have the expected action verb.
AssertActions asserts the actual actions have the expected action verb.
// AssertActions asserts the actual actions have the expected action verb .
func AssertActions(t *testing.T, actualActions []clienttesting.Action, expectedVerbs ...string) {
	if len(actualActions) != len(expectedVerbs) {
		t.Errorf("expected %d call but got: %#v", len(expectedVerbs), actualActions)
	}
	for i, expected := range expectedVerbs {
		if actualActions[i].GetVerb() != expected {
			t.Errorf("expected %s action but got: %#v", expected, actualActions[i])
		}
	}
}
func AssertActions ( t * testing . T , actualActions [ ] clienttesting . Action , expectedVerbs ... string ) { if len ( actualActions ) != len ( expectedVerbs ) { t . Errorf ( " " , len ( expectedVerbs ) , actualActions ) } for i , expected := range expectedVerbs { if actualActions [ i ] . GetVerb ( ) != expected { t . Errorf ( " " , expected , actualActions [ i ] ) } } }
AssertActions asserts the actual actions have the expected action verb.
AssertActions asserts the actual actions have the expected action verb .