INNER CODE UNIT · Go

TestPRRApproval_ApproverForStage

kubernetes/enhancements · api/approval_test.go:58

func TestPRRApproval_ApproverForStage(t *testing.T) {
	testcases := []struct {
		name         string
		stage        api.Stage
		prr          *api.PRRApproval
		wantApprover string
		wantErr      bool
	}{
		{
			name:    "invalid: incorrect stage",
			stage:   "badstage",
			prr:     validAlphaPRR,
			wantErr: true,
		},
		{
			name:         "invalid: missing approver",
			stage:        "alpha",
			prr:          invalidPRR,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…