- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 483 for testCases (0.89 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go
ipv6BaseEstimatedCost := checker.CostEstimate{Min: 2, Max: 2} ipv6BaseRuntimeCost := uint64(2) type testCase struct { ops []string expectEsimatedCost func(checker.CostEstimate) checker.CostEstimate expectRuntimeCost func(uint64) uint64 } cases := []testCase{ { // For just parsing the IP, the cost is expected to be the base. ops: []string{""},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 40.8K bytes - Viewed (0) -
src/encoding/binary/binary_test.go
B foo C Struct } testcases := []struct { val any want int }{ {new(foo), 1}, {new([1]foo), 0}, {make([]foo, 1), 0}, {new(bar), 1}, {new(bar), 0}, {new(struct{ A Struct }), 1}, {new(struct{ A Struct }), 0}, {new([1]struct{ A Struct }), 0}, {make([]struct{ A Struct }, 1), 0}, } for _, tc := range testcases { if Size(tc.val) == -1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:16:18 UTC 2024 - 25.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go
}, } for k, testCase := range testCases { req, _ := http.NewRequest("GET", "/", nil) if !testCase.Insecure { req.TLS = &tls.ConnectionState{PeerCertificates: testCase.Certs} } // this effectively tests the simple dynamic verify function. a := New(testCase.Opts, testCase.User) resp, ok, err := a.AuthenticateRequest(req) if testCase.ExpectErr && err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 23:23:03 UTC 2024 - 36.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation_test.go
return authorizer.DecisionAllow, "", nil } return authorizer.DecisionNoOpinion, "deny by default", nil } func TestImpersonationFilter(t *testing.T) { testCases := []struct { name string user user.Info impersonationUser string impersonationGroups []string impersonationUserExtras map[string][]string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 06 17:13:16 UTC 2021 - 17.2K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
{5 * humanize.MiByte, 2 * humanize.MiByte, 4, 0}, } for i, testCase := range testCases { s, err := calculatePartSizeFromIdx(GlobalContext, testCase.totalSize, testCase.partSize, testCase.partIndex) if err != nil { t.Errorf("Test %d: Expected to pass but failed. %s", i+1, err) } if err == nil && s != testCase.expectedSize {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 17.6K bytes - Viewed (0) -
tests/integration/security/fuzz/fuzz_test.go
deploy(t, apacheServer, ns, "backends/apache/apache.yaml") deploy(t, jwtTool, ns, "fuzzers/jwt_tool/jwt_tool.yaml") waitService(t, apacheServer, ns) testCases := []struct { name string baseToken string }{ {"TokenIssuer1", jwt.TokenIssuer1}, {"TokenIssuer1WithAud", jwt.TokenIssuer1WithAud}, {"TokenIssuer1WithAzp", jwt.TokenIssuer1WithAzp},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 12.9K bytes - Viewed (0) -
pkg/controller/job/pod_failure_policy_test.go
Name: "mypod", } ignore := batch.PodFailurePolicyActionIgnore failJob := batch.PodFailurePolicyActionFailJob failIndex := batch.PodFailurePolicyActionFailIndex count := batch.PodFailurePolicyActionCount testCases := map[string]struct { enableJobBackoffLimitPerIndex bool podFailurePolicy *batch.PodFailurePolicy failedPod *v1.Pod wantJobFailureMessage *string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 22.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/policy/checker_test.go
if len(m1) != len(m2) { return false } for key, value := range m1 { if m2[key] != value { return false } } return true } func TestUnionStages(t *testing.T) { var testCases = []struct { s1, s2, exp []audit.Stage }{ { []audit.Stage{}, []audit.Stage{}, []audit.Stage{}, }, { []audit.Stage{audit.StageRequestReceived}, []audit.Stage{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 12 15:06:14 UTC 2021 - 15.1K bytes - Viewed (0) -
pkg/api/v1/endpoints/util_test.go
func TestPackSubsets(t *testing.T) { // The downside of table-driven tests is that some things have to live outside the table. fooObjRef := v1.ObjectReference{Name: "foo"} barObjRef := v1.ObjectReference{Name: "bar"} testCases := []struct { name string given []v1.EndpointSubset expect []v1.EndpointSubset }{ { name: "empty everything",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 16.6K bytes - Viewed (0)