Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 1,460 for case1 (0.03 sec)

  1. android/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)
  2. 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)
  3. 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)
  4. cmd/signature-v4-utils_test.go

    		expectedResult bool
    	}{
    		// Test case - 1.
    		// Test case with "X-Amz-Content-Sha256" header set, but to empty value but we can't skip.
    		{"X-Amz-Content-Sha256", "", "", "", false},
    
    		// Test case - 2.
    		// Test case with "X-Amz-Content-Sha256" not set so we can skip.
    		{"", "", "", "", true},
    
    		// Test case - 3.
    		// Test case with "X-Amz-Content-Sha256" header set to  "UNSIGNED-PAYLOAD"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. cmd/iam.go

    	defer cancel()
    
    	switch {
    	case usersPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigUsersPrefix))
    		err = sys.store.UserNotificationHandler(ctx, accessKey, regUser)
    	case stsPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigSTSPrefix))
    		err = sys.store.UserNotificationHandler(ctx, accessKey, stsUser)
    	case svcPrefix:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  6. .gitmodules

    [submodule "okhttp-hpacktests/src/test/resources/hpack-test-case"]
    	path = okhttp-hpacktests/src/test/resources/hpack-test-case
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 10 09:33:37 UTC 2022
    - 182 bytes
    - Viewed (0)
  7. cmd/healthcheck-handler.go

    		return
    	}
    
    	if int(globalHTTPStats.loadRequestsInQueue()) > globalAPIConfig.getRequestsPoolCapacity() {
    		apiErr := getAPIError(ErrBusy)
    		switch r.Method {
    		case http.MethodHead:
    			writeResponse(w, apiErr.HTTPStatusCode, nil, mimeNone)
    		case http.MethodGet:
    			writeErrorResponse(r.Context(), w, apiErr, r.URL)
    		}
    		return
    	}
    
    	// Verify if KMS is reachable if its configured
    	if GlobalKMS != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. cmd/os_windows.go

    				continue
    			}
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_DIRECTORY != 0:
    			name += SlashSeparator
    		}
    
    		count--
    		entries = append(entries, name)
    
    	}
    
    	return entries, nil
    }
    
    func globalSync() {
    	// no-op on windows
    }
    
    func syscallErrToFileErr(dirPath string, err error) error {
    	switch err {
    	case nil:
    		return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. 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)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/CleanArgument.java

                    addedToBuffer = true;
                }
    
                // this has to be a separate "if" statement, to capture the case of: "-Dfoo=bar"
                if (addedToBuffer && arg.endsWith("\"")) {
                    // if we're building an argument, keep doing so.
                    // if this is the case of "-Dfoo=bar", then we need to adjust the buffer.
                    if (!currentArg.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top