Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for expectedChanges (0.32 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/OutputFileChangesTest.groovy

        }
    
        def "trivial addition of #current.type"() {
            expect:
            changes(
                FileSystemSnapshot.EMPTY,
                current
            ) == expectedChanges
    
            where:
            current                          | expectedChanges
            regularFile("two", 0x1234)       | [added("two")]
            missing("two")                   | [added("two")]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. pkg/proxy/endpointschangetracker_test.go

    			if len(tc.expectedChanges) != len(changes) {
    				t.Fatalf("Expected %d changes, got %d", len(tc.expectedChanges), len(changes))
    			}
    
    			for _, change := range changes {
    				// All of the test cases have 0 or 1 changes, so if we're
    				// here, then expectedChanges[0] is what we expect.
    				expectedChange := tc.expectedChanges[0]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/util/util_test.go

    		pod               *v1.Pod
    		status            *kubecontainer.PodStatus
    		expectedChanged   bool
    		expectedAttempt   uint32
    		expectedSandboxID string
    	}{
    		"Pod with no existing sandboxes": {
    			pod:               &v1.Pod{},
    			status:            &kubecontainer.PodStatus{},
    			expectedChanged:   true,
    			expectedAttempt:   0,
    			expectedSandboxID: "",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. src/runtime/mranges_test.go

    	)
    
    	// Push a bunch of independent ranges to the end to try and force growth.
    	expectedRanges := []AddrRange{MakeAddrRange(512, 8192)}
    	for i := uintptr(0); i < 64; i++ {
    		dRange := MakeAddrRange(8192+(i+1)*2048, 8192+(i+1)*2048+10)
    		a.Add(dRange)
    		expectedRanges = append(expectedRanges, dRange)
    		validateAddrRanges(t, &a, expectedRanges...)
    	}
    
    	// Push a bunch of independent ranges to the beginning to try and force growth.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 23 23:01:52 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  5. pkg/api/testing/defaulting_test.go

    			continue
    		}
    		testTypes = append(testTypes, gvk)
    	}
    	sort.Sort(testTypes)
    
    	for _, gvk := range testTypes {
    		_, expectedChanged := typesWithDefaulting[gvk]
    		iter := 0
    		changedOnce := false
    		for {
    			if iter > *roundtrip.FuzzIters {
    				if !expectedChanged || changedOnce {
    					break
    				}
    				if iter > 300 {
    					t.Errorf("expected %s to trigger defaulting due to fuzzing", gvk)
    					break
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

      }
    
      private void testRangesByLowerBounds(
          TreeRangeSet<Integer> rangeSet, Iterable<Range<Integer>> expectedRanges) {
        NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByLowerBound = Maps.newTreeMap();
        for (Range<Integer> range : expectedRanges) {
          expectedRangesByLowerBound.put(range.lowerBound, range);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 24.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    		},
    	)
    }
    
    func TestFilterOut(t *testing.T) {
    	type Test struct {
    		name            string
    		input           []string
    		x               string
    		expected        []string
    		expectedChanged bool
    	}
    	for _, tt := range []Test{
    		{"nil", nil, "foo", nil, false},
    		{"empty", []string{}, "foo", []string{}, false},
    		{"foo", []string{"foo"}, "foo", nil, true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
Back to top