- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,323 for CASE (0.02 sec)
-
cmd/policy_test.go
expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("case %v: error: expected: %v, got: %v\n", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(result, testCase.expectedResult) { t.Fatalf("case %v: result: expected: %+v, got: %+v\n", i+1, testCase.expectedResult, result) } } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.9K bytes - Viewed (0) -
internal/bucket/replication/rule_test.go
import ( "bytes" "fmt" "testing" ) func TestMetadataReplicate(t *testing.T) { testCases := []struct { inputConfig string opts ObjectOpts expectedResult bool }{ // case 1 - rule with replica modification enabled; not a replica {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.6K bytes - Viewed (0) -
src/archive/tar/writer.go
} } n = len(b0) - len(b) switch { case err == ErrWriteTooLong: return n, errMissData // Not possible; implies bug in validation logic case err != nil: return n, err case sw.logicalRemaining() == 0 && sw.physicalRemaining() > 0: return n, errUnrefData // Not possible; implies bug in validation logic case overwrite: return n, ErrWriteTooLong default: return n, nil } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 14:22:59 UTC 2024 - 19.6K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacSignature.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.3K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/SimpleProblemCollector.java
switch (req.getSeverity()) { case FATAL: if (!fatals.contains(req.getMessage())) { fatals.add(req.getMessage()); } break; case ERROR: if (!errors.contains(req.getMessage())) { errors.add(req.getMessage()); } break; case WARNING:
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/asm/internal/arch/arch.go
switch GOARCH { case "386": return archX86(&x86.Link386) case "amd64": return archX86(&x86.Linkamd64) case "arm": return archArm() case "arm64": return archArm64() case "loong64": return archLoong64(&loong64.Linkloong64) case "mips": return archMips(&mips.Linkmips) case "mipsle": return archMips(&mips.Linkmipsle) case "mips64": return archMips64(&mips.Linkmips64)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 24 12:32:56 UTC 2024 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java
final JsonToken token = jsonParser.getCurrentToken(); return switch (token) { case VALUE_STRING -> jsonParser.getText(); case VALUE_NUMBER_INT -> jsonParser.getLongValue(); case VALUE_NUMBER_FLOAT -> jsonParser.getDoubleValue(); case VALUE_TRUE -> true; case VALUE_FALSE -> false; case VALUE_NULL -> null; default -> null; // Or throw an exception if unexpected token };
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 12.3K bytes - Viewed (0) -
internal/auth/credentials.go
switch exp := expI.(type) { case string: expAt, err = strconv.ParseInt(exp, 10, 64) case float64: expAt, err = int64(exp), nil case int64: expAt, err = exp, nil case int: expAt, err = int64(exp), nil case uint64: expAt, err = int64(exp), nil case uint: expAt, err = int64(exp), nil case json.Number: expAt, err = exp.Int64() case time.Duration:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 28 17:14:16 UTC 2024 - 12K bytes - Viewed (0) -
cmd/callhome.go
for { if !globalCallhomeConfig.Enabled() { // Stop the processing as callhome got disabled return false } select { case <-ctx.Done(): // indicates that we do not need to run callhome anymore return false case <-callhomeTimer.C: if !globalCallhomeConfig.Enabled() { // Stop the processing as callhome got disabled return false } performCallhome(ctx)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 17 16:53:34 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/erasure-decode.go
p.buf[bufIdx] = p.buf[bufIdx][:p.shardSize] n, err := rr.ReadAt(p.buf[bufIdx], p.offset) if err != nil { switch { case errors.Is(err, errFileNotFound): atomic.StoreInt32(&missingPartsHeal, 1) case errors.Is(err, errFileCorrupt): atomic.StoreInt32(&bitrotHeal, 1) case errors.Is(err, errDiskNotFound): atomic.AddInt32(&disksNotFound, 1) } // This will be communicated upstream.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 9.5K bytes - Viewed (0)