- Sort Score
- Result 10 results
- Languages All
Results 681 - 690 of 1,521 for cases (0.12 sec)
-
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
private int rep; @Override public @Nullable Integer computeNext() { switch (rep++) { case 0: return 0; case 1: return 1; case 2: return endOfData(); default: throw new AssertionError("Should not have been invoked again"); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
internal/s3select/json/record.go
for _, kv := range r.KVS { var columnValue string switch val := kv.Value.(type) { case float64: columnValue = jsonFloat(val) case string: columnValue = val case bool, int64: columnValue = fmt.Sprintf("%v", val) case nil: columnValue = "" case RawJSON: columnValue = string([]byte(val)) case []interface{}: b, err := json.Marshal(val) if err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 5.3K bytes - Viewed (0) -
docs/debugging/inspect/main.go
// Calculate the output file name var outputFileName string switch { case strings.HasSuffix(inputFileName, ".enc"): outputFileName = strings.TrimSuffix(inputFileName, ".enc") + ".zip" case strings.HasSuffix(inputFileName, ".zip"): outputFileName = strings.TrimSuffix(inputFileName, ".zip") + ".decrypted.zip" case strings.Contains(inputFileName, ".enc."):
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 31 14:49:23 UTC 2024 - 5.2K bytes - Viewed (0) -
cmd/net_test.go
} for _, testCase := range testCases { ipList, err := getHostIP(testCase.host) switch { case testCase.expectedErr == nil: if err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } case err == nil: t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr) case testCase.expectedErr.Error() != err.Error(): t.Fatalf("error: expected = %v, got = %v", testCase.expectedErr, err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
schema/schema.go
case callbackTypeAfterCreate: return modelType.MethodByName(string(callbackTypeAfterCreate)) case callbackTypeBeforeUpdate: return modelType.MethodByName(string(callbackTypeBeforeUpdate)) case callbackTypeAfterUpdate: return modelType.MethodByName(string(callbackTypeAfterUpdate)) case callbackTypeBeforeSave: return modelType.MethodByName(string(callbackTypeBeforeSave)) case callbackTypeAfterSave:
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 20 12:19:31 UTC 2024 - 13.7K bytes - Viewed (0) -
tests/scanner_valuer_test.go
// prepend asterisks return append([]byte("***"), data...), nil } type Num int64 func (i *Num) Scan(src interface{}) error { switch s := src.(type) { case []byte: n, _ := strconv.Atoi(string(s)) *i = Num(n) case int64: *i = Num(s) default: return errors.New("Cannot scan NamedInt from " + reflect.ValueOf(src).String()) } return nil } type StringsSlice []string
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 07 07:02:07 UTC 2023 - 10.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/Utils.java
requireNonNull(level, "level"); return switch (level) { case DEBUG -> MavenExecutionRequest.LOGGING_LEVEL_DEBUG; case INFO -> MavenExecutionRequest.LOGGING_LEVEL_INFO; case ERROR -> MavenExecutionRequest.LOGGING_LEVEL_ERROR; }; } public static int toPlexusLoggingLevel(Slf4jConfiguration.Level level) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K bytes - Viewed (0) -
cmd/update-notifier_test.go
// fmt.Println(output) switch { case testCase.dlURL == "" && output != "": t.Errorf("Testcase %d: no newer release available but got an update message: %s", i+1, output) case output == "" && testCase.dlURL != "" && testCase.older > 0: t.Errorf("Testcase %d: newer release is available but got empty update message!", i+1) case output == "" && (testCase.dlURL == "" || testCase.older <= 0):
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 31 15:36:19 UTC 2023 - 4.1K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/CleanArgument.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/xml/DomUtil.java
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.5K bytes - Viewed (0)