Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTitleCase (0.12 sec)

  1. operator/pkg/name/name_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			if got := tt.cn.IsGateway(); got != tt.want {
    				t.Errorf("ComponentName.IsGateway() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestTitleCase(t *testing.T) {
    	tests := []struct {
    		name string
    		n    ComponentName
    		want ComponentName
    	}{
    		{
    			name: "to upper title",
    			n:    "ingressGateways",
    			want: "IngressGateways",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 05 14:08:11 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top