Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 81 for asError (0.11 sec)

  1. pkg/kubelet/eviction/helpers_test.go

    		}
    	}
    }
    
    func TestParsePercentage(t *testing.T) {
    	testCases := map[string]struct {
    		hasError bool
    		value    float32
    	}{
    		"blah": {
    			hasError: true,
    		},
    		"25.5%": {
    			value: 0.255,
    		},
    		"foo%": {
    			hasError: true,
    		},
    		"12%345": {
    			hasError: true,
    		},
    	}
    	for input, expected := range testCases {
    		value, err := parsePercentage(input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

      CHECK_EQ(results.size(), 1);
    
      func->Execute(*exec_ctx_, tfrt::GetReadyChain().GetAsyncValue(), results);
    
      host_context_->Await(results);
    
      CHECK(!results[0]->IsError()) << "Failed to run TFRT initialization function";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ReaderInputStream.java

                continue DRAINING;
              } else if (endOfInput) { // (b)
                doneEncoding = true;
              } else { // (c)
                readMoreChars();
              }
            } else if (result.isError()) {
              // Only reach here if a CharsetEncoder with non-REPLACE settings is used.
              result.throwException();
              return 0; // Not called.
            }
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ReaderInputStream.java

                continue DRAINING;
              } else if (endOfInput) { // (b)
                doneEncoding = true;
              } else { // (c)
                readMoreChars();
              }
            } else if (result.isError()) {
              // Only reach here if a CharsetEncoder with non-REPLACE settings is used.
              result.throwException();
              return 0; // Not called.
            }
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. cmd/preferredimports/preferredimports.go

    						// Not a full match.
    						continue
    					}
    					alias := string(re.ExpandString(nil, template, importPath, match))
    					if alias != importName {
    						if !*confirm {
    							fmt.Fprintf(os.Stderr, "%sERROR wrong alias for import \"%s\" should be %s in file %s\n", logPrefix, importPath, alias, pathToFile)
    							a.failed = true
    						}
    						replacements[importName] = alias
    						if imp.Name != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            suggester.refresh();
    
            SuggestItem[] items2 = getItemSet1();
            SuggestIndexResponse response = suggester.indexer().index(items2);
    
            assertFalse(response.hasError());
    
            suggester.refresh();
    
            SuggestResponse response2 = suggester.suggest().setSuggestDetail(true).execute().getResponse();
            assertEquals(2, response2.getNum());
        }
    
        @Test
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbSessionImpl.java

                            throw new SmbAuthException("Login failed", e);
                        }
                        else if ( !sessResponse.isReceived() || sessResponse.isError() || ( sessResponse.getStatus() != NtStatus.NT_STATUS_OK
                                && sessResponse.getStatus() != NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED ) ) {
                            throw e;
                        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

                            catch ( SmbException e ) {
                                Smb2IoctlResponse response = copy.getResponse();
                                if ( !retry && response.isReceived() && !response.isError()
                                        && response.getStatus() == NtStatus.NT_STATUS_INVALID_PARAMETER ) {
                                    retry = true;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 17.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		}
    	}
    	if lv.Contains(types.String("fourth")) != types.False {
    		t.Errorf("got %v, wanted false 'fourth'", lv.Contains(types.String("fourth")))
    	}
    	if !types.IsError(lv.Contains(types.Int(-1))) {
    		t.Errorf("got %v, wanted error for invalid type", lv.Contains(types.Int(-1)))
    	}
    }
    
    func TestListValueContainsNestedList(t *testing.T) {
    	lvA := NewListValue()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  10. src/syscall/syscall_windows.go

    )
    
    func (e Errno) Is(target error) bool {
    	switch target {
    	case oserror.ErrPermission:
    		return e == ERROR_ACCESS_DENIED ||
    			e == EACCES ||
    			e == EPERM
    	case oserror.ErrExist:
    		return e == ERROR_ALREADY_EXISTS ||
    			e == ERROR_DIR_NOT_EMPTY ||
    			e == ERROR_FILE_EXISTS ||
    			e == EEXIST ||
    			e == ENOTEMPTY
    	case oserror.ErrNotExist:
    		return e == ERROR_FILE_NOT_FOUND ||
    			e == _ERROR_BAD_NETPATH ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
Back to top