- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 906 for Cases (0.04 sec)
-
schema/relationship.go
return } } } for idx, ownField := range ownForeignFields { joinFieldName := cases.Title(language.Und, cases.NoLower).String(schema.Name) + ownField.Name if len(joinForeignKeys) > idx { joinFieldName = cases.Title(language.Und, cases.NoLower).String(joinForeignKeys[idx]) } ownFieldsMap[joinFieldName] = ownField fieldsMap[joinFieldName] = ownField
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 22.7K bytes - Viewed (0) -
pilot/pkg/credentials/kube/secrets_test.go
mc.Add("local", localClient, stop) mc.Add("remote", remoteClient, stop) mc.Add("remote2", remoteClient, stop) cases := []struct { cluster cluster2.ID allowed bool }{ {"local", true}, {"remote", true}, {"remote2", true}, {"invalid", false}, } for _, tt := range cases { t.Run(string(tt.cluster), func(t *testing.T) { _, err := sc.ForCluster(tt.cluster) if (err == nil) != tt.allowed {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 19:18:21 UTC 2024 - 18.4K bytes - Viewed (0) -
pilot/pkg/model/jwks_resolver_test.go
defer r.Close() ms, err := test.StartNewServer() defer ms.Stop() if err != nil { t.Fatal("failed to start a mock server") } mockCertURL := ms.URL + "/oauth2/v3/certs" cases := []struct { in string expectedJwksURI string expectedError bool }{ { in: ms.URL, expectedJwksURI: mockCertURL, }, { in: ms.URL,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 09:47:21 UTC 2024 - 19.2K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs_test.go
}, } for name, tc := range cases { t.Run(name, func(t *testing.T) { err := ValidateInterPodAffinityArgs(nil, &tc.args) if diff := cmp.Diff(tc.wantErr, err, ignoreBadValueDetail); diff != "" { t.Errorf("ValidateInterPodAffinityArgs returned err (-want,+got):\n%s", diff) } }) } } func TestValidatePodTopologySpreadArgs(t *testing.T) { cases := map[string]struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0) -
pkg/kube/inject/inject_test.go
continue } cases = append(cases, testCase{in: f.Name(), want: want}) } // Precompute injection settings. This may seem like a premature optimization, but due to the size of // YAMLs, with -race this was taking >10min in some cases to generate! if util.Refresh() { cleanupOldFiles(t) writeInjectionSettings(t, "default", nil, "") for i, c := range cases {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 34.1K bytes - Viewed (0) -
cni/pkg/install/install_test.go
testutils "istio.io/istio/pilot/test/util" "istio.io/istio/pkg/file" "istio.io/istio/pkg/test/util/assert" "istio.io/istio/pkg/util/sets" ) func TestCheckInstall(t *testing.T) { cases := []struct { name string expectedFailure bool cniConfigFilename string cniConfName string chainedCNIPlugin bool existingConfFiles map[string]string // {srcFilename: targetFilename, ...}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 11.1K bytes - Viewed (0) -
src/testing/slogtest/slogtest.go
// Run the handler on the test cases. for _, c := range cases { ht := h if c.mod != nil { ht = &wrapper{h, c.mod} } l := slog.New(ht) c.f(l) } // Collect and check the results. var errs []error res := results() if g, w := len(res), len(cases); g != w { return fmt.Errorf("got %d results, want %d", g, w) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 9.8K bytes - Viewed (0) -
tests/integration/pilot/common/traffic.go
Apps deployment.SingleNamespaceView Istio istio.Instance // sourceFilters defines default filters for all cases sourceMatchers []match.Matcher // targetFilters defines default filters for all cases targetMatchers []match.Matcher // comboFilters defines default filters for all cases comboFilters []echotest.CombinationFilter } func (t *TrafficContext) SetDefaultSourceMatchers(f ...match.Matcher) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 19:10:01 UTC 2024 - 11.4K bytes - Viewed (0) -
pilot/pkg/networking/core/networkfilter_test.go
} } else { t.Errorf("redis filter type is %T not listener.Filter_TypedConfig ", redisFilter.ConfigType) } } func TestInboundNetworkFilterStatPrefix(t *testing.T) { cases := []struct { name string statPattern string expectedStatPrefix string }{ { "no pattern", "", "inbound|8888||", }, { "service only pattern",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 25.8K bytes - Viewed (0) -
pilot/pkg/model/service_test.go
t.Errorf("Expected hostname %v got %v", tt.hostname, h) } if p != tt.port { t.Errorf("Expected direction %v got %v", tt.port, p) } }) } } func TestIsValidSubsetKey(t *testing.T) { cases := []struct { subsetkey string expectErr bool }{ { subsetkey: "outbound|80|subset|hostname", expectErr: false, }, { subsetkey: "outbound|80||hostname", expectErr: false, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 13.9K bytes - Viewed (0)