Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 1,007 for put (0.01 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java

          assertFalse(multimap().put(k, v));
          assertEquals(expectedValues, values);
          assertGet(k, expectedValues);
        }
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testPutDuplicateValue_null() {
        initMultimapWithNullValue();
        assertFalse(multimap().put(getKeyForNullValue(), null));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/TransposedTableTest.java

        original.put(1, "foo", 'a');
        assertEquals((Character) 'a', transpose.get("foo", 1));
      }
    
      public void testPutTransposeModifiesOriginal() {
        Table<Integer, String, Character> original = HashBasedTable.create();
        Table<String, Integer, Character> transpose = transpose(original);
        transpose.put("foo", 1, 'a');
        assertEquals((Character) 'a', original.get(1, "foo"));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/management/DefaultPluginManagementInjector.java

                    Map<Object, Object> context = Collections.emptyMap();
    
                    for (Plugin element : src) {
                        Object key = getPluginKey(element);
                        managedPlugins.put(key, element);
                    }
    
                    for (Plugin element : tgt) {
                        Object key = getPluginKey(element);
                        Plugin managedPlugin = managedPlugins.get(key);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

              builder.put(entry.getKey(), entry.getValue());
            }
            return builder.buildOrThrow();
          }
        },
        BUILDER_PUT_ALL_MAP {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
            Map<Object, Object> sourceMap = new LinkedHashMap<>();
            for (Entry<?, ?> entry : entries) {
              if (sourceMap.put(entry.getKey(), entry.getValue()) != null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 28 19:11:14 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  5. internal/config/dns/etcd_dns.go

    	}
    	sort.Slice(srvRecords, func(i int, j int) bool {
    		return srvRecords[i].Key < srvRecords[j].Key
    	})
    	return srvRecords, nil
    }
    
    // Put - Adds DNS entries into etcd endpoint in CoreDNS etcd message format.
    func (c *CoreDNS) Put(bucket string) error {
    	c.Delete(bucket) // delete any existing entries.
    
    	t := time.Now().UTC()
    	for ip := range c.domainIPs {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

            N predecessor = incidentEdge.nodeU();
    
            Object existingValue = adjacentNodeValues.put(predecessor, PRED);
            if (existingValue != null) {
              adjacentNodeValues.put(predecessor, new PredAndSucc(existingValue));
            }
    
            orderedNodeConnectionsBuilder.add(new NodeConnection.Pred<>(predecessor));
            predecessorCount++;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          int initialSize = map.size();
          V oldValue = map.put(keyToPut, valueToPut);
          assertEquals(valueToPut, map.get(keyToPut));
          assertTrue(map.containsKey(keyToPut));
          assertTrue(map.containsValue(valueToPut));
          assertEquals(initialSize + 1, map.size());
          assertNull(oldValue);
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.put(keyToPut, valueToPut));
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  8. tests/test_put_no_body.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    def save_item_no_body(item_id: str):
        return {"item_id": item_id}
    
    
    client = TestClient(app)
    
    
    def test_put_no_body():
        response = client.put("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "foo"}
    
    
    def test_put_no_body_with_body():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.3K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_put_all(client: TestClient):
        response = client.put(
            "/items/123",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
                "tags": ["foo", "bar", "foo"],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ImmutableTable.java

       *
       * {@snippet :
       * static final ImmutableTable<Integer, Character, String> SPREADSHEET =
       *     new ImmutableTable.Builder<Integer, Character, String>()
       *         .put(1, 'A', "foo")
       *         .put(1, 'B', "bar")
       *         .put(2, 'A', "baz")
       *         .buildOrThrow();
       * }
       *
       * <p>By default, the order in which cells are added to the builder determines the iteration
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 17.3K bytes
    - Click Count (0)
Back to Top