- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 3,148 for but (0.02 sec)
-
internal/crypto/header_test.go
for i, test := range kmsParseHTTPTests { _, _, err := S3KMS.ParseHTTP(test.Header) if err == nil && test.ShouldFail { t.Errorf("Test %d: should fail but succeeded", i) } if err != nil && !test.ShouldFail { t.Errorf("Test %d: should pass but failed with: %v", i, err) } } } var s3IsRequestedTests = []struct { Header http.Header Expected bool }{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 13 14:52:15 UTC 2022 - 21.4K bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
Like `item.model_dump(exclude_unset=True)`. /// info In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`. The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectPreconditions.java
if (value < 0) { throw new IllegalArgumentException(name + " cannot be negative but was: " + value); } return value; } @CanIgnoreReturnValue static long checkNonnegative(long value, String name) { if (value < 0) { throw new IllegalArgumentException(name + " cannot be negative but was: " + value); } return value; } static void checkPositive(int value, String name) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 30 10:33:07 UTC 2021 - 2.1K bytes - Viewed (0) -
cmd/bucket-lifecycle_test.go
}, ondisk: true, }, { // restore completed but expired meta: map[string]string{ xhttp.AmzRestore: completedRestoreObj(time.Now().Add(-time.Hour)).String(), }, ondisk: false, }, } for i, tc := range testCases { if actual := isRestoredObjectOnDisk(tc.meta); actual != tc.ondisk { t.Fatalf("Test %d: expected %v but got %v for %v", i+1, tc.ondisk, actual, tc.meta) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0) -
cmd/xl-storage-format-utils_test.go
if fi.VersionID != versions[i].VersionID { t.Fatalf("getFileInfoVersions: versions don't match at %d, version id expected %s but got %s", i, fi.VersionID, versions[i].VersionID) } if fi.NumVersions != len(fivs.Versions) { t.Fatalf("getFileInfoVersions: version with %s version id expected to have %d as NumVersions but got %d", fi.VersionID, len(fivs.Versions), fi.NumVersions) } } for i, free := range fivs.FreeVersions {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 7.1K bytes - Viewed (0) -
tests/transaction_test.go
t.Fatalf("No error should raise, but got %v", err) } if err := tx.First(&User{}, "name = ?", "transaction").Error; err != nil { t.Fatalf("Should find saved record, but got %v", err) } user1 := *GetUser("transaction1-1", Config{}) if err := tx.Save(&user1).Error; err != nil { t.Fatalf("No error should raise, but got %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Sep 14 12:58:29 UTC 2024 - 12.9K bytes - Viewed (0) -
docs/en/docs/alternatives.md
But still, FastAPI got quite some inspiration from Requests. **Requests** is a library to *interact* with APIs (as a client), while **FastAPI** is a library to *build* APIs (as a server). They are, more or less, at opposite ends, complementing each other. Requests has a very simple and intuitive design, it's very easy to use, with sensible defaults. But at the same time, it's very powerful and customizable.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 23.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java
} // Node sets are the same, but edge sets differ. @Test public void equivalent_edgeSetsDiffer() { network.addEdge(N1, N2, E12); MutableNetwork<Integer, String> g2 = createNetwork(edgeType); g2.addEdge(N1, N2, E13); assertThat(network).isNotEqualTo(g2); } // Node/edge sets are the same, but node/edge connections differ due to edge type. @Test
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java
} // Node sets are the same, but edge sets differ. @Test public void equivalent_edgeSetsDiffer() { network.addEdge(N1, N2, E12); MutableNetwork<Integer, String> g2 = createNetwork(edgeType); g2.addEdge(N1, N2, E13); assertThat(network).isNotEqualTo(g2); } // Node/edge sets are the same, but node/edge connections differ due to edge type. @Test
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/endpoint-ellipses_test.go
if err != nil && testCase.success { t.Errorf("Test %d: Expected success but failed instead %s", i+1, err) } if err == nil && !testCase.success { t.Errorf("Test %d: Expected failure but passed instead", i+1) } }) } } func TestGetDivisibleSize(t *testing.T) { testCases := []struct { totalSizes []uint64
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.2K bytes - Viewed (0)