Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ConvertProtocol (0.13 sec)

  1. pilot/pkg/serviceregistry/kube/conversion_test.go

    	for _, c := range cases {
    		testName := strings.Replace(fmt.Sprintf("%s_%s_%d", c.name, c.proto, c.port), "-", "_", -1)
    		t.Run(testName, func(t *testing.T) {
    			out := kube.ConvertProtocol(c.port, c.name, c.proto, c.appProtocol)
    			if out != c.out {
    				t.Fatalf("convertProtocol(%d, %q, %q) => %q, want %q", c.port, c.name, c.proto, out, c.out)
    			}
    		})
    	}
    }
    
    func BenchmarkConvertProtocol(b *testing.B) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top