Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 751 - 760 of 960 for valid2 (0.48 seconds)

  1. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

                            hasAllLanguages = true;
                            break;
                        }
                    }
                    assertTrue("Should contain ALL_LANGUAGES or have valid result", hasAllLanguages || languages.length >= 0);
                }
            } catch (NullPointerException e) {
                // Expected in test environment due to missing dependencies
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

            }
        }
    
        @Nested
        @DisplayName("Header Decoding Tests")
        class HeaderDecodingTests {
    
            @Test
            @DisplayName("decode_header should successfully parse valid header")
            void testDecodeHeaderSuccess() throws NdrException {
                // Mock NdrBuffer methods for successful decoding
                when(mockBuffer.dec_ndr_small()).thenReturn(5)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            assertEquals(2, sis.read());
        }
    
        @Test
        @DisplayName("Reading with null array throws NullPointerException")
        void readNullArrayThrowsException() {
            // Create stream with valid message header and data
            byte[] data = new byte[] { 1 };
            InputStream in = new ByteArrayInputStream(concat(messageHeader(1), data));
            SocketInputStream sis = new SocketInputStream(in);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java

            assertEquals("1.0 MB/s", builder.build());
        }
    
        @Test
        void testFormatRateLargeValues() {
            FileSizeFormat format = new FileSizeFormat();
    
            // Test large but valid rates
            MessageBuilder builder = new DefaultMessageBuilder();
            format.formatRate(builder, 5e12); // 5 TB/s
            assertEquals("5000.0 GB/s", builder.build());
    
            // Test very large rate
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  5. cmd/erasure-metadata_test.go

    		expectedOffset int64
    		expectedErr    error
    	}{
    		{0, 0, 0, nil},
    		{1 * humanize.MiByte, 0, 1 * humanize.MiByte, nil},
    		{1 + humanize.MiByte, 1, 0, nil},
    		{2 + humanize.MiByte, 1, 1, nil},
    		// Its valid for zero sized object.
    		{-1, 0, -1, nil},
    		// Max fffset is always (size - 1).
    		{(1 + 2 + 4 + 5 + 7) + (5 * humanize.MiByte) - 1, 4, 1048582, nil},
    		// Error if offset is size.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  6. cmd/signature-v4.go

    }
    
    // Check to see if Policy is signed correctly.
    func doesPolicySignatureMatch(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	// For SignV2 - Signature field will be valid
    	if _, ok := formValues[xhttp.AmzSignatureV2]; ok {
    		return doesPolicySignatureV2Match(formValues)
    	}
    	return doesPolicySignatureV4Match(formValues)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Dec 13 22:19:12 GMT 2024
    - 12.4K bytes
    - Click Count (0)
  7. src/archive/tar/format.go

    func (b *block) toUSTAR() *headerUSTAR { return (*headerUSTAR)(b) }
    func (b *block) toSparse() sparseArray { return sparseArray(b[:]) }
    
    // getFormat checks that the block is a valid tar header based on the checksum.
    // It then attempts to guess the specific format based on magic values.
    // If the checksum fails, then FormatUnknown is returned.
    func (b *block) getFormat() Format {
    	// Verify checksum.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractService.java

          }
        }
    
        /**
         * @see Service#failureCause()
         */
        Throwable failureCause() {
          checkState(
              state == FAILED,
              "failureCause() is only valid if the service has failed, service is %s",
              state);
          // requireNonNull is safe because the constructor requires a non-null cause with state=FAILED.
          return requireNonNull(failure);
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
    
        @Override
        public String toString() {
          return "BY_TO_STRING";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
      }
    
      // Always equal is a valid total ordering. And it works for any Object.
      private static final class AlwaysEqual extends Ordering<@Nullable Object>
          implements Serializable {
        private static final AlwaysEqual INSTANCE = new AlwaysEqual();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  10. tests/hooks_test.go

    	}
    
    	if DB.First(&Product4{}, "name = ?", product.Name).Error == nil {
    		t.Errorf("should got RecordNotFound, but got nil")
    	}
    
    	product = Product4{Name: "Product-2", Price: 100, Item: ProductItem{Code: "valid"}}
    	if err := DB.Create(&product).Error; err != nil {
    		t.Errorf("should create product, but got error %v", err)
    	}
    
    	if err := DB.First(&Product4{}, "name = ?", product.Name).Error; err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jun 17 03:59:06 GMT 2024
    - 16.7K bytes
    - Click Count (0)
Back to Top