Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 7,815 for expect2 (0.57 sec)

  1. pkg/kubelet/container/testing/mock_runtime_cache.go

    	mock := &MockRuntimeCache{ctrl: ctrl}
    	mock.recorder = &MockRuntimeCacheMockRecorder{mock}
    	return mock
    }
    
    // EXPECT returns an object that allows the caller to indicate expected use.
    func (m *MockRuntimeCache) EXPECT() *MockRuntimeCacheMockRecorder {
    	return m.recorder
    }
    
    // ForceUpdateIfOlder mocks base method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/components/internal/RendererUtilsTest.groovy

    class RendererUtilsTest extends Specification {
        def "returns '#expected' for simple value #value"() {
            expect:
            RendererUtils.displayValueOf(value) == expected
    
            where:
            value | expected
            null  | "null"
            1     | "1"
            true  | "true"
        }
    
        def "returns '#expected' for #value.getClass().simpleName"() {
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  3. pkg/filewatcher/filewatcher_test.go

    	errors1 = w.Errors(watchFile1)
    	g.Expect(errors1).To(BeNil())
    	events2 = w.Events(watchFile2)
    	g.Expect(events2).NotTo(BeNil())
    	errors2 = w.Errors(watchFile2)
    	g.Expect(errors2).NotTo(BeNil())
    
    	fmt.Printf("2\n")
    	// Validate Close behavior
    	err = w.Close()
    	g.Expect(err).NotTo(HaveOccurred())
    	events1 = w.Events(watchFile1)
    	g.Expect(events1).To(BeNil())
    	errors1 = w.Errors(watchFile1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. cni/test/testdata/expected/ZZZ-istio-cni-kubeconfig.expected

    John Howard <******@****.***> 1605827959 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 19 23:19:19 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  5. pkg/registry/core/service/strategy_test.go

    			}
    			if !reflect.DeepEqual(result.Spec.ClusterIPs, tc.expect.Spec.ClusterIPs) {
    				t.Errorf("expected clusterIPs %q, got %q", tc.expect.Spec.ClusterIP, result.Spec.ClusterIP)
    			}
    			if !reflect.DeepEqual(result.Spec.IPFamilies, tc.expect.Spec.IPFamilies) {
    				t.Errorf("expected ipFamilies %q, got %q", tc.expect.Spec.IPFamilies, result.Spec.IPFamilies)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  6. pkg/proxy/util/utils_test.go

    			expect: "[fd00:1::5]",
    		},
    	}
    
    	for i := range testCases {
    		got := AppendPortIfNeeded(testCases[i].addr, testCases[i].port)
    		if testCases[i].expect != got {
    			t.Errorf("case %s: expected %v, got %v", testCases[i].name, testCases[i].expect, got)
    		}
    	}
    }
    
    func TestMapIPsByIPFamily(t *testing.T) {
    	testCases := []struct {
    		desc            string
    		ipString        []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. pkg/config/schema/ast/ast_test.go

    					},
    				},
    			},
    		},
    	}
    
    	for _, c := range cases {
    		t.Run("", func(t *testing.T) {
    			g := NewWithT(t)
    			actual, err := Parse(c.input)
    			g.Expect(err).To(BeNil())
    			g.Expect(actual).To(Equal(c.expected))
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/debug_test.go

    }
    
    // writeReadExpect writes ss, then reads stdout and stderr until something
    // that matches expectRE appears.  expectRE should not be ""
    func (s *ioState) writeReadExpect(ss, expectRE string) tstring {
    	if *verbose {
    		fmt.Printf("=> %s", ss)
    	}
    	if expectRE == "" {
    		panic("expectRE should not be empty; use .* instead")
    	}
    	_, err := io.WriteString(s.stdin, ss)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  9. operator/cmd/mesh/test-util_test.go

    	obj := objs.kind(name2.MutatingWebhookConfigurationStr).nameEquals(mutatingWebhookConfigurationName)
    	g.Expect(obj).Should(Not(BeNil()))
    	return obj
    }
    
    // HavePathValueEqual matches map[string]interface{} tree against a PathValue.
    func HavePathValueEqual(expected any) types.GomegaMatcher {
    	return &HavePathValueEqualMatcher{
    		expected: expected,
    	}
    }
    
    // HavePathValueEqualMatcher is a matcher type for HavePathValueEqual.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. pkg/kubelet/kubeletconfig/util/test/test.go

    		} else if !strings.Contains(err.Error(), contains) {
    			t.Errorf("case %q, expect error to contain %q but got %q", desc, contains, err.Error())
    		}
    		return true
    	} else if len(contains) > 0 {
    		t.Errorf("case %q, expect error to contain %q but got nil error", desc, contains)
    		return true
    	}
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 19 16:18:53 UTC 2018
    - 1.9K bytes
    - Viewed (0)
Back to top