Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 589 for barT (0.02 sec)

  1. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        @Override
        public SampleElements<Entry<String, Integer>> samples() {
          return new SampleElements<>(
              immutableEntry("bar", 1),
              immutableEntry("bar", 2),
              immutableEntry("foo", 3),
              immutableEntry("bar", 3),
              immutableEntry("cat", 2));
        }
    
        @Override
        public Collection<Entry<String, Integer>> create(Object... elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

            new EqualsTester()
                .addEqualityGroup(named("foo").addPeers("bar"), named("bar").addPeers("foo", "x"))
                .addEqualityGroup(named("baz").addPeers("x"), named("x").addPeers("baz", "bar"));
        try {
          tester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(
              e, "bar [group 1, item 2] must not be Object#equals to x [group 2, item 2]");
          return;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. tests/test_dependency_security_overrides.py

        user_data: Tuple[str, List[str]] = Security(get_user, scopes=["foo", "bar"]),
        data: List[int] = Depends(get_data),
    ):
        return {"user": user_data[0], "scopes": user_data[1], "data": data}
    
    
    client = TestClient(app)
    
    
    def test_normal():
        response = client.get("/user")
        assert response.json() == {
            "user": "john",
            "scopes": ["foo", "bar"],
            "data": [1, 2, 3],
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 14 15:54:46 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/test/java/org/apache/maven/cli/CleanArgumentTest.java

        }
    
        @Test
        void cleanArgsShouldRemoveWrongSurroundingQuotes() {
            String[] args = {"\"-Dfoo=bar", "\"-Dfoo2=bar two\""};
            String[] cleanArgs = CleanArgument.cleanArgs(args);
            assertEquals(args.length, cleanArgs.length);
            assertEquals("-Dfoo=bar", cleanArgs[0]);
            assertEquals("-Dfoo2=bar two", cleanArgs[1]);
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/CaseFormatTest.java

        assertEquals("foo", LOWER_HYPHEN.to(LOWER_HYPHEN, "foo"));
        assertEquals("foo-bar", LOWER_HYPHEN.to(LOWER_HYPHEN, "foo-bar"));
      }
    
      public void testLowerHyphenToLowerUnderscore() {
        assertEquals("foo", LOWER_HYPHEN.to(LOWER_UNDERSCORE, "foo"));
        assertEquals("foo_bar", LOWER_HYPHEN.to(LOWER_UNDERSCORE, "foo-bar"));
      }
    
      public void testLowerHyphenToLowerCamel() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 04 09:41:29 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/PathType.java

         *       {@code {"--module-path", "dir\path1;dir\path2"}} on Windows.</li>
         *   <li>If this type was created by {@code JavaPathType.patchModule("foo.bar")}, then the method returns
         *       {@code {"--patch-module", "foo.bar=dir/path1:dir/path2"}} on Unix or
         *       {@code {"--patch-module", "foo.bar=dir\path1;dir\path2"}} on Windows.</li>
         * </ul>
         *
         * @param paths the path to format as a string
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        sink.writeLines(ImmutableList.of("foo", "bar", "baz").stream());
        String separator = LINE_SEPARATOR.value();
        assertEquals("foo" + separator + "bar" + separator + "baz" + separator, sink.getString());
      }
    
      public void testWriteLines_stream_separator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz").stream(), "!");
        assertEquals("foo!bar!baz!", sink.getString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        multimap.put("foo", 1);
        multimap.put("foo", 2);
        multimap.put("bar", 3);
        multimap.trimToSize();
        assertEquals(3, multimap.size());
        assertThat(multimap.get("foo")).containsExactly(1, 2).inOrder();
        assertThat(multimap.get("bar")).contains(3);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. docs_src/app_testing/app_b_an/main.py

    from pydantic import BaseModel
    from typing_extensions import Annotated
    
    fake_secret_token = "coneofsilence"
    
    fake_db = {
        "foo": {"id": "foo", "title": "Foo", "description": "There goes my hero"},
        "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"},
    }
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        id: str
        title: str
        description: Union[str, None] = None
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. docs_src/app_testing/app_b/main.py

    from pydantic import BaseModel
    
    fake_secret_token = "coneofsilence"
    
    fake_db = {
        "foo": {"id": "foo", "title": "Foo", "description": "There goes my hero"},
        "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"},
    }
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        id: str
        title: str
        description: Union[str, None] = None
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 09 14:44:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top