Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for addMove (0.12 sec)

  1. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertThat(graphAsMutableGraph.addNode(N1)).isTrue();
        assertThat(graph.nodes()).contains(N1);
      }
    
      @Test
      public void addNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        ImmutableSet<Integer> nodes = ImmutableSet.copyOf(graph.nodes());
        assertThat(graphAsMutableGraph.addNode(N1)).isFalse();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RuleBindingsTest.groovy

            def rule3 = rule(Integer, ModelNode.State.Mutated, ModelPath.path("a"))
            bindings.add(rule1)
            bindings.add(rule2)
            addNode(node1)
            addNode(node2)
            addNode(node3)
            addNode(node4)
            bindings.add(rule3)
    
            expect:
            bindings.getRulesWithSubject(nodeAtState("a", ModelNode.State.Mutated)) as List == [rule1]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go

    	"k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    // Calls AddNode() once.
    // Verifies node exists, and zero volumes to attach.
    func Test_AddNode_Positive_NewNode(t *testing.T) {
    	// Arrange
    	volumePluginMgr, _ := volumetesting.GetTestVolumePluginMgr(t)
    	dsw := NewDesiredStateOfWorld(volumePluginMgr)
    	nodeName := k8stypes.NodeName("node-name")
    
    	// Act
    	dsw.AddNode(nodeName)
    
    	// Assert
    	nodeExists := dsw.NodeExists(nodeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/cache/cache_test.go

    				addNode(t, 6)
    				addNode(t, 0)
    			},
    			expected: []string{"node-2", "node-0", "node-3", "node-4", "node-5", "node-6"},
    		},
    		{
    			name: "bug 91601, 7 nodes, two in a different zone",
    			operations: func(t *testing.T) {
    				addNode(t, 2)
    				updateSnapshot(t)
    				addNode(t, 3)
    				addNode(t, 4)
    				updateSnapshot(t)
    				addNode(t, 5)
    				addNode(t, 6)
    				addNode(t, 0)
    				addNode(t, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/ImmutableGraph.java

         *
         * @return this {@code Builder} object
         */
        @CanIgnoreReturnValue
        public Builder<N> addNode(N node) {
          mutableGraph.addNode(node);
          return this;
        }
    
        /**
         * Adds an edge connecting {@code nodeU} to {@code nodeV} if one is not already present.
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/ImmutableValueGraph.java

         *
         * @return this {@code Builder} object
         */
        @CanIgnoreReturnValue
        public ImmutableValueGraph.Builder<N, V> addNode(N node) {
          mutableValueGraph.addNode(node);
          return this;
        }
    
        /**
         * Adds an edge connecting {@code nodeU} to {@code nodeV} if one is not already present, and
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/RuleBindings.java

            rulesByInput = new NodeAtStateIndex("rulesByInput");
        }
    
        public void nodeCreated(ModelNodeInternal node) {
            untypedPathReferences.addNode(node);
        }
    
        public void nodeDiscovered(ModelNodeInternal node) {
            typedPathReferences.addNode(node);
            scopeReferences.addNodeToScope(node.getPath(), node);
            scopeReferences.addNodeToScope(node.getPath().getParent(), node);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
      public void edgesConnecting_checkReturnedSetMutability() {
        addNode(N1);
        addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

            assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2));
        addNode(N1);
        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
        UnsupportedOperationException e =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pkg/controller/ttl/ttl_controller_test.go

    }
    
    func TestDesiredTTL(t *testing.T) {
    	testCases := []struct {
    		addNode      bool
    		deleteNode   bool
    		nodeCount    int
    		desiredTTL   int
    		boundaryStep int
    		expectedTTL  int
    	}{
    		{
    			addNode:      true,
    			nodeCount:    0,
    			desiredTTL:   0,
    			boundaryStep: 0,
    			expectedTTL:  0,
    		},
    		{
    			addNode:      true,
    			nodeCount:    99,
    			desiredTTL:   0,
    			boundaryStep: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top