- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkerNames (0.13 sec)
-
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go
} }) } // checkerNames returns the names of the checks in the same order as passed in. func checkerNames(checks ...HealthChecker) []string { // accumulate the names of checks for printing them out. checkerNames := make([]string, 0, len(checks)) for _, check := range checks { checkerNames = append(checkerNames, check.Name()) } return checkerNames }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go
{"checker order", []HealthChecker{c1, c2}, []string{n1, n2}}, {"different checker order", []HealthChecker{c2, c1}, []string{n2, n1}}, } for _, tc := range testCases { result := checkerNames(tc.have...) t.Run(tc.desc, func(t *testing.T) { if !reflect.DeepEqual(tc.want, result) { t.Errorf("want %#v, got %#v", tc.want, result) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 20:43:16 UTC 2023 - 11.4K bytes - Viewed (0)