- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 5,450 for expect2 (0.45 sec)
-
operator/pkg/util/yaml_test.go
if got := YAMLDiff(tt.diff1, tt.diff2); got != tt.expect { t.Errorf("%s: expect %v got %v", tt.desc, tt.expect, got) } }) } } func TestIsYAMLEqual(t *testing.T) { tests := []struct { desc string in1 string in2 string expect bool }{ { desc: "yaml-equal", in1: `foo: bar`, in2: `foo: bar`, expect: true, }, { desc: "bad-yaml-1",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 17:00:14 UTC 2024 - 6.7K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_test.go
To(Equal(uint32(expected.Tcp.TcpKeepalive.Time.Seconds))) g.Expect(cluster.UpstreamConnectionOptions.TcpKeepalive.KeepaliveInterval.Value). To(Equal(uint32(expected.Tcp.TcpKeepalive.Interval.Seconds))) g.Expect(cluster.ConnectTimeout).NotTo(BeNil()) g.Expect(cluster.ConnectTimeout.Seconds).To(Equal(expected.Tcp.ConnectTimeout.Seconds)) g.Expect(thresholds.MaxConnections).NotTo(BeNil())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 108.8K bytes - Viewed (0) -
testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 46.1K bytes - Viewed (0) -
pkg/test/framework/suite_test.go
ref := []OtherInterface{existing} err := act(&ref, tracked) g.Expect(err).To(BeNil()) g.Expect(ref).To(HaveLen(2)) g.Expect(existing).To(Equal(ref[0])) g.Expect(tracked).To(Equal(ref[1])) }) t.Run("non pointer ref", func(t *testing.T) { g := NewWithT(t) err := act(resource.FakeResource{}, &resource.FakeResource{}) g.Expect(err).NotTo(BeNil()) }) } func TestDeriveSuiteName(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 11.5K bytes - Viewed (0) -
pkg/kubelet/eviction/eviction_manager_test.go
} expected := []bool{true, true, true} for i, pod := range pods { if result := manager.Admit(&lifecycle.PodAdmitAttributes{Pod: pod}); expected[i] != result.Admit { t.Errorf("Admit pod: %v, expected: %v, actual: %v", pod, expected[i], result.Admit) } } manager.nodeConditions = []v1.NodeConditionType{v1.NodeMemoryPressure} expected = []bool{true, true, false}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 119.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleSourceDetectorTest.groovy
static class B extends RuleSource {} static class A extends RuleSource {} } def "find model rule sources - #clazz"() { expect: detector.getDeclaredSources(clazz).toList() == expected where: clazz | expected String | [] HasOneSource | [HasOneSource.Source] HasTwoSources | [HasTwoSources.SourceOne, HasTwoSources.SourceTwo]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy
} '''.stripIndent() expect: succeeds('verify') } def "has no value when providing a null map to a map property"() { given: buildFile << ''' verify { prop.putAll(project.provider { null }) expected = null } '''.stripIndent() expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 04 15:28:53 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/kubelet/pleg/generic_test.go
} return a[i].Data.(string) < a[j].Data.(string) } func verifyEvents(t *testing.T, expected, actual []*PodLifecycleEvent) { sort.Sort(sortableEvents(expected)) sort.Sort(sortableEvents(actual)) if !reflect.DeepEqual(expected, actual) { t.Errorf("Actual events differ from the expected; diff:\n %v", cmp.Diff(expected, actual)) } } func TestRelisting(t *testing.T) { testPleg := newTestGenericPLEG()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 24.8K bytes - Viewed (0) -
pkg/kubelet/status/testing/mock_pod_status_provider.go
func NewMockPodManager(ctrl *gomock.Controller) *MockPodManager { mock := &MockPodManager{ctrl: ctrl} mock.recorder = &MockPodManagerMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockPodManager) EXPECT() *MockPodManagerMockRecorder { return m.recorder } // GetMirrorPodByPod mocks base method. func (m *MockPodManager) GetMirrorPodByPod(arg0 *v1.Pod) (*v1.Pod, bool) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 15.4K bytes - Viewed (0) -
pkg/config/schema/resource/schema_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.2K bytes - Viewed (0)