Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for actualNodes (0.23 sec)

  1. pkg/controller/garbagecollector/dump_test.go

    		t.Run(test.name, func(t *testing.T) {
    			actualNodes, actualEdges := toDOTNodesAndEdgesForObj(test.uidToNode, test.uids...)
    			compareGraphs(test.expectNodes, actualNodes, test.expectEdges, actualEdges, t)
    		})
    	}
    }
    
    func compareGraphs(expectedNodes, actualNodes []*dotVertex, expectedEdges, actualEdges []dotEdge, t *testing.T) {
    	if len(expectedNodes) != len(actualNodes) {
    		t.Fatal(dump.Pretty(actualNodes))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/AbstractConflictResolverTest.java

            return conflictResolver;
        }
    
        protected void assertResolveConflict(
                ResolutionNode expectedNode, ResolutionNode actualNode1, ResolutionNode actualNode2) {
            ResolutionNode resolvedNode = getConflictResolver().resolveConflict(actualNode1, actualNode2);
    
            assertNotNull(resolvedNode, "Expected resolvable");
            assertEquals(expectedNode, resolvedNode, "Resolution node");
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. pkg/kubelet/pod/pod_manager_test.go

    	// Tests that all regular pods are recorded correctly.
    	actualPods := podManager.GetPods()
    	if len(actualPods) != len(expectedPods) {
    		t.Errorf("expected %d pods, got %d pods; expected pods %#v, got pods %#v", len(expectedPods), len(actualPods),
    			expectedPods, actualPods)
    	}
    	for _, expected := range expectedPods {
    		found := false
    		for _, actual := range actualPods {
    			if actual.UID == expected.UID {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:27 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    	}
    
    	for name, tc := range testcases {
    		t.Run(name, func(t *testing.T) {
    			var actualModel Model
    			for _, resources := range tc.resources {
    				AddResources(&actualModel, resources)
    			}
    			for _, allocation := range tc.allocations {
    				AddAllocation(&actualModel, allocation)
    			}
    
    			require.Equal(t, tc.expectModel, actualModel)
    		})
    	}
    
    }
    
    func TestController(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportOutput.groovy

         */
        void hasNodeStructure(ReportNode expectedNode) {
            def parsedNodes = parsedModelReport.reportNode
            def actualNode = parsedNodes.findFirstByName(expectedNode.name())
            assert actualNode: "Could not find the first node to begin comparison"
            checkNodes(actualNode, expectedNode)
        }
    
        /**
         * A fuzzy assertion which recursively asserts that:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 02 20:49:19 UTC 2015
    - 3.5K bytes
    - Viewed (0)
  6. cmd/handler-utils_test.go

    	}
    
    	for i, testCase := range testCases {
    		config.SetRegion(globalServerConfig, testCase.serverConfigRegion)
    		_, actualCode := parseLocationConstraint(testCase.request)
    		if testCase.expectedCode != actualCode {
    			t.Errorf("Test %d: Expected the APIErrCode to be %d, but instead found %d", i+1, testCase.expectedCode, actualCode)
    		}
    	}
    }
    
    // Tests validate metadata extraction from http headers.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. pkg/volume/downwardapi/downwardapi_test.go

    	if err != nil {
    		test.t.Errorf(err.Error())
    		return
    	}
    
    	actualMode := fileInfo.Mode()
    	expectedMode := os.FileMode(step.expectedMode)
    	if actualMode != expectedMode {
    		test.t.Errorf("Found mode `%v` expected %v", actualMode, expectedMode)
    	}
    }
    
    type reSetUp struct {
    	stepName
    	linkShouldChange bool
    	newLabels        map[string]string
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 04:48:49 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  8. pkg/volume/util/subpath/subpath_linux_test.go

    				}
    				actualMode := st.Mode()
    				if actualMode != test.perm {
    					if actualMode^test.perm == os.ModeSetgid && test.perm&os.ModeSetgid == 0 {
    						// when TMPDIR is a kubernetes emptydir, the sticky gid bit is set due to fsgroup
    						t.Logf("masking bit from %o", actualMode)
    					} else {
    						t.Errorf("expected permissions %o, got %o (%b)", test.perm, actualMode, test.perm^actualMode)
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  9. hack/lib/test.sh

          result=1
      fi
      if [ "${actualcode}" -ne "${expectedcode}" ]; then
          echo "${bold}${red}"
          echo "$(kube::test::get_caller): FAIL!"
          echo "Return code for ${message}"
          echo "  Expected: ${expectedcode}"
          echo "  Got:      ${actualcode}"
          echo "${reset}${red}"
          caller
          echo "${reset}"
          result=1
      fi
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 16:46:34 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/ResolveTestFixture.groovy

            StringBuilder matched = new StringBuilder()
            expectedSorted.each { node ->
                def actualNode = actualSorted.find { it.id == node.id }
    
                if (!actualNode) {
                    errors.append("Expected to find node ${node.id} but wasn't present in result\n")
                } else if (!node.diff(actualNode, errors)) {
                    matched.append("   - $node\n")
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 37.8K bytes
    - Viewed (0)
Back to top