- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for assertfunc2 (0.24 sec)
-
test/interface/assertinline.go
} func assertptr2(x interface{}) (*int, bool) { z, ok := x.(*int) // ERROR "type assertion inlined" return z, ok } func assertfunc(x interface{}) func() { return x.(func()) // ERROR "type assertion inlined" } func assertfunc2(x interface{}) (func(), bool) { z, ok := x.(func()) // ERROR "type assertion inlined" return z, ok } func assertstruct(x interface{}) struct{ *int } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 02 21:33:03 UTC 2016 - 1.8K bytes - Viewed (0) -
pilot/pkg/networking/core/route/retry/retry_test.go
func TestRetry(t *testing.T) { testCases := []struct { name string route *networking.HTTPRoute assertFunc func(g *WithT, policy *envoyroute.RetryPolicy) }{ { name: "TestNilRetryShouldReturnDefault", // Create a route where no retry policy has been explicitly set. route: &networking.HTTPRoute{}, assertFunc: func(g *WithT, policy *envoyroute.RetryPolicy) { g.Expect(policy).To(Not(BeNil()))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 7.7K bytes - Viewed (0) -
pkg/volume/volume_linux_test.go
expectedMask := rwMask | os.ModeSetgid | execMask tests := []struct { description string fsGroupChangePolicy *v1.PodFSGroupChangePolicy setupFunc func(path string) error assertFunc func(path string) error }{ { description: "featuregate=on, fsgroupchangepolicy=always", fsGroupChangePolicy: &always, setupFunc: func(path string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 12.1K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
t.Fatalf("expected CA bundle %q, got %q", tc.whCA, injectionWhConf.CABundle) } } } } } func testGenerateOption(t *testing.T, generate bool, assertFunc func(*testing.T, []admitv1.MutatingWebhook, []admitv1.MutatingWebhook)) { defaultWh := defaultRevisionCanonicalWebhook.DeepCopy() fakeClient := kube.NewFakeClient(defaultWh) opts := &GenerateOptions{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 16 17:43:49 UTC 2024 - 12.1K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
testResourceFile := "duplicate_mwc" testCases := []struct { name string force bool assertFunc func(g *WithT, objs *ObjectSet, err error) }{ { name: "Duplicate MutatingWebhookConfiguration should be allowed when --force is enabled", force: true, assertFunc: func(g *WithT, objs *ObjectSet, err error) { g.Expect(err).Should(BeNil())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 18:05:06 UTC 2024 - 43.5K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/certs_test.go
err := config.load() if test.expectErr { assert.Error(t, err) } if !test.expectErr && assert.NoError(t, err) { for _, assertFunc := range test.assertions { assertFunc(t, config) } } }) } } func TestRunCmdCertsExpiration(t *testing.T) { kdir := testutil.SetupTempDir(t) defer func() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 13:26:12 UTC 2024 - 20.1K bytes - Viewed (0)