Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 7,815 for expect2 (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go

    		}
    		if !reflect.DeepEqual(result.GV, c.expect) {
    			t.Errorf("JSON codec failed to unmarshal input '%s': expected %+v, got %+v", c.input, c.expect, result.GV)
    		}
    		// test the utiljson codec
    		if err := utiljson.Unmarshal(c.input, &result); err != nil {
    			t.Errorf("util/json codec failed to unmarshal input '%v': %v", c.input, err)
    		}
    		if !reflect.DeepEqual(result.GV, c.expect) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:49:23 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

                    @Internal
                    List<String> expected = []
    
                    @TaskAction
                    void validate() {
                        def actual = prop.getOrNull()
                        println 'Actual: ' + actual
                        println 'Expected: ' + expected
                        assert expected == actual
                        actual.each { assert it instanceof String }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/selectors/SelectorStateResolverTest.groovy

            def candidates = permutation.candidates
            def expected = permutation.expectedSingle
    
            expect:
            resolver(permutation.conflicts).resolve(candidates) == expected
    
            where:
            permutation << SCENARIOS_SINGLE
        }
    
        def "resolve pair #permutation (batch 1)"() {
            given:
            def candidates = permutation.candidates
            def expected = permutation.expectedSingle
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 23:54:34 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  4. tests/integration/pilot/analyze_test.go

    		t.Fatal(err, output)
    	}
    
    	g.Expect(j).To(HaveLen(len(expected)))
    
    	for i, m := range j {
    		g.Expect(m["level"]).To(Equal(expected[i].Level().String()))
    		g.Expect(m["code"]).To(Equal(expected[i].Code()))
    	}
    }
    
    // istioctlSafe calls istioctl analyze with certain flags set. Stdout and Stderr are merged
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/ipset/ipset_test.go

    		}
    		if len(entries) != len(testCases[i].expected) {
    			t.Errorf("expected %d ipset entries, got: %d", len(testCases[i].expected), len(entries))
    		}
    		if !reflect.DeepEqual(entries, testCases[i].expected) {
    			t.Errorf("expected entries: %v, got: %v", testCases[i].expected, entries)
    		}
    	}
    }
    
    func TestListSets(t *testing.T) {
    	output := `foo
    bar
    baz`
    
    	expected := []string{"foo", "bar", "baz"}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  6. tests/integration/security/normalization_test.go

    						Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    							for _, expected := range tt.expectations {
    								expected := expected
    								t.NewSubTest(expected.in).Run(func(t framework.TestContext) {
    									checker := check.URL(expected.out)
    									if expected.out == "400" {
    										checker = check.Status(http.StatusBadRequest)
    									}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/watch/watch_test.go

    	consumer := func(w Interface) {
    		for _, expect := range table {
    			got, ok := <-w.ResultChan()
    			if !ok {
    				t.Fatalf("closed early")
    			}
    			if e, a := expect.t, got.Type; e != a {
    				t.Fatalf("Expected %v, got %v", e, a)
    			}
    			if a, ok := got.Object.(testType); !ok || a != expect.s {
    				t.Fatalf("Expected %v, got %v", expect.s, a)
    			}
    		}
    		_, stillOpen := <-w.ResultChan()
    		if stillOpen {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 15 11:34:31 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  8. pkg/volume/util/volumeattributesclass_test.go

    						AlphaIsDefaultVolumeAttributesClassAnnotation: "true",
    					},
    				},
    			},
    			expect: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := IsDefaultVolumeAttributesClassAnnotation(tc.class.ObjectMeta)
    			if tc.expect != actual {
    				t.Errorf("Expected %v, got %v", tc.expect, actual)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. src/crypto/tls/bogo_shim_test.go

    	onResumeExpectECHAccepted  = flag.Bool("on-resume-expect-ech-accept", false, "")
    	_                          = flag.Bool("on-resume-expect-no-ech-name-override", false, "")
    	expectedServerName         = flag.String("expect-server-name", "", "")
    
    	expectSessionMiss = flag.Bool("expect-session-miss", false, "")
    
    	_                       = flag.Bool("enable-early-data", false, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. security/pkg/nodeagent/cache/secretcache_test.go

    		expected string
    	}{
    		{
    			name:     "no certs",
    			certs:    []string{},
    			expected: "",
    		},
    		{
    			name:     "single cert",
    			certs:    []string{"a"},
    			expected: "a",
    		},
    		{
    			name:     "multiple certs",
    			certs:    []string{"a", "b"},
    			expected: "a\nb",
    		},
    		{
    			name:     "existing newline",
    			certs:    []string{"a\n", "b"},
    			expected: "a\nb",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top