- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 757 for switches (0.17 sec)
-
guava/src/com/google/common/collect/ImmutableEnumMap.java
@ElementTypesAreNonnullByDefault final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> { static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) { switch (map.size()) { case 0: return ImmutableMap.of(); case 1: Entry<K, V> entry = getOnlyElement(map.entrySet()); return ImmutableMap.of(entry.getKey(), entry.getValue()); default:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
tests/tests_test.go
log.Printf("failed to ping sqlDB, got error %v", err) os.Exit(1) } RunMigrations() } } func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) { dbDSN := os.Getenv("GORM_DSN") switch os.Getenv("GORM_DIALECT") { case "mysql": log.Println("testing mysql...") if dbDSN == "" { dbDSN = mysqlDSN } db, err = gorm.Open(mysql.Open(dbDSN), cfg) case "postgres":
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Sep 30 03:21:19 UTC 2024 - 3.3K bytes - Viewed (0) -
cmd/lock-rest-client.go
r, err := h.Call(ctx, c.connection, args) if err != nil { return false, err } defer h.PutResponse(r) ok = r.Code == dsync.RespOK switch r.Code { case dsync.RespLockConflict, dsync.RespLockNotFound, dsync.RespOK: // no error case dsync.RespLockNotInitialized: err = errLockNotInitialized default: err = errors.New(r.Err) } return ok, err
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 3.3K bytes - Viewed (0) -
internal/s3select/jstream/decoder_test.go
t.Fatalf("expected 5 items, got %d", counter) } // test at depth level 1 counter = 0 kvcounter := 0 decoder = NewDecoder(mkReader(body), 1) for mv = range decoder.Stream() { switch mv.Value.(type) { case KV: kvcounter++ default: counter++ } t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value) } if err := decoder.Err(); err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java
for (final BooleanClause clause : booleanQuery.clauses()) { final QueryBuilder queryBuilder = getQueryProcessor().execute(context, clause.getQuery(), boost); if (queryBuilder != null) { switch (clause.getOccur()) { case MUST: boolQuery.must(queryBuilder); break; case SHOULD: boolQuery.should(queryBuilder);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/line_test.go
arch, ctxt := setArch(goarch) tokenizer := lex.NewTokenizer("", strings.NewReader(test.input+"\n"), nil) parser := NewParser(ctxt, arch, tokenizer) err := tryParse(t, func() { parser.Parse() }) switch { case err == nil: t.Errorf("#%d: %q: want error %q; have none", i, test.input, test.error) case !strings.Contains(err.Error(), test.error): t.Errorf("#%d: %q: want error %q; have %q", i, test.input, test.error, err)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Transport.java
int st = this.state; try { switch ( st ) { case 0: break; case 1: // already connecting this.thread.wait(timeout); /* wait for doConnect */ st = this.state; switch ( st ) { case 1: /* doConnect never returned */ this.state = 6;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Nov 01 18:12:21 UTC 2020 - 24.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacSignature.java
try { PacDataInputStream bufferStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data))); this.type = bufferStream.readInt(); switch ( this.type ) { case KERB_CHECKSUM_HMAC_MD5: this.checksum = new byte[16]; break; case HMAC_SHA1_96_AES128: case HMAC_SHA1_96_AES256:
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
public List<String> getErrors() { return errors; } public List<String> getFatals() { return fatals; } public void add(ModelProblemCollectorRequest req) { switch (req.getSeverity()) { case FATAL: if (!fatals.contains(req.getMessage())) { fatals.add(req.getMessage()); } break; case ERROR:
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/archive/tar/format.go
} func (f Format) String() string { var ss []string for f2 := Format(1); f2 < formatMax; f2 <<= 1 { if f.has(f2) { ss = append(ss, formatNames[f2]) } } switch len(ss) { case 0: return "<unknown>" case 1: return ss[0] default: return "(" + strings.Join(ss, " | ") + ")" } } // Magics used to identify various formats. const (
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 11.3K bytes - Viewed (0)