- Sort Score
- Result 10 results
- Languages All
Results 981 - 990 of 1,509 for case1 (0.18 sec)
-
android/guava-tests/test/com/google/common/net/HttpHeadersTest.java
/** * Tests for the HttpHeaders class. * * @author Kurt Alfred Kluever */ public class HttpHeadersTest extends TestCase { public void testConstantNameMatchesString() throws Exception { // Special case some of the weird HTTP Header names... ImmutableBiMap<String, String> specialCases = ImmutableBiMap.<String, String>builder() .put("CDN_LOOP", "CDN-Loop") .put("ETAG", "ETag")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 22 21:08:08 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HttpHeadersTest.java
/** * Tests for the HttpHeaders class. * * @author Kurt Alfred Kluever */ public class HttpHeadersTest extends TestCase { public void testConstantNameMatchesString() throws Exception { // Special case some of the weird HTTP Header names... ImmutableBiMap<String, String> specialCases = ImmutableBiMap.<String, String>builder() .put("CDN_LOOP", "CDN-Loop") .put("ETAG", "ETag")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 22 21:08:08 UTC 2024 - 3.9K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/bucket-extensions.kt
if (expectedBucketSize == 0) { // The elements in the list are so small that they can't even be divided into {expectedBucketNumber}. // For example, how do you split [0,0,0,0,0] into 3 buckets? // In this case, we simply put the elements into these buckets evenly. return list.chunked(list.size / expectedBucketNumber, smallElementAggregateFunction) } val largestElement = list.removeFirst()!!
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Nov 17 05:17:44 UTC 2022 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/xml/XmlEscapersTest.java
assertEscaping(xmlEscaper, "\uFFFD", ch); } } // Test _all_ allowed characters (including surrogate values). for (char ch = 0x20; ch <= 0xFFFD; ch++) { // There are a small number of cases to consider, so just do it manually. if (ch == '&') { assertEscaping(xmlEscaper, "&", ch); } else if (ch == '<') { assertEscaping(xmlEscaper, "<", ch); } else if (ch == '>') {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/accesstoken/AdminAccesstokenAction.java
switch (form.crudMode) { case CrudMode.CREATE: return OptionalEntity.of(new AccessToken()).map(entity -> { entity.setCreatedBy(username); entity.setCreatedTime(currentTime); return entity; }); case CrudMode.EDIT: if (form instanceof EditForm) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 14.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/labeltype/AdminLabeltypeAction.java
switch (form.crudMode) { case CrudMode.CREATE: return OptionalEntity.of(new LabelType()).map(entity -> { entity.setCreatedBy(username); entity.setCreatedTime(currentTime); return entity; }); case CrudMode.EDIT: if (form instanceof EditForm) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 15.1K bytes - Viewed (0) -
callbacks/query.go
queryFields := db.QueryFields if !queryFields { switch db.Statement.ReflectValue.Kind() { case reflect.Struct: queryFields = db.Statement.ReflectValue.Type() != db.Statement.Schema.ModelType case reflect.Slice: queryFields = db.Statement.ReflectValue.Type().Elem() != db.Statement.Schema.ModelType } } if queryFields {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 10.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import junit.framework.TestCase; /** * Test case for {@link ListenableFutureTask}. * * @author Sven Mawson */ public class ListenableFutureTaskTest extends TestCase { private ExecutorService exec;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4.7K bytes - Viewed (0) -
cmd/etcd.go
) var errEtcdUnreachable = errors.New("etcd is unreachable, please check your endpoints") func etcdErrToErr(err error, etcdEndpoints []string) error { if err == nil { return nil } switch err { case context.DeadlineExceeded: return fmt.Errorf("%w %s", errEtcdUnreachable, etcdEndpoints) default: return fmt.Errorf("unexpected error %w from etcd, please check your endpoints %s", err, etcdEndpoints) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/api-errors_test.go
{err: errObjectTampered, errCode: ErrObjectTampered}, {err: nil, errCode: ErrNone}, {err: errors.New("Custom error"), errCode: ErrInternalError}, // Case where err type is unknown. } func TestAPIErrCode(t *testing.T) { ctx := context.Background() for i, testCase := range toAPIErrorTests { errCode := toAPIErrorCode(ctx, testCase.err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 25 15:13:08 UTC 2023 - 3.4K bytes - Viewed (0)