Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 893 for isValid (0.04 sec)

  1. tests/preload_test.go

    			if pet.Toy.Name != "" {
    				t.Errorf("No toy should for user %v's pet %v but got %v", idx+1, pet.Name, pet.Toy.Name)
    			}
    		}
    	}
    
    	if len(users2[2].Pets) != 3 {
    		t.Errorf("Invalid pet toys found for user 3 got %v", len(users2[2].Pets))
    	} else {
    		sort.Slice(users2[2].Pets, func(i, j int) bool {
    			return users2[2].Pets[i].ID < users2[2].Pets[j].ID
    		})
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            // Given
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
    
            when(messageBlock.decode(buffer, bufferIndex)).thenThrow(new SMBProtocolDecodingException("Invalid buffer"));
    
            // When & Then
            assertThrows(SMBProtocolDecodingException.class, () -> messageBlock.decode(buffer, bufferIndex));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Longs.java

       *     minLength}
       */
      public static long[] ensureCapacity(long[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSetMultimap.java

        stream.defaultReadObject();
        Comparator<Object> valueComparator = (Comparator<Object>) stream.readObject();
        int keyCount = stream.readInt();
        if (keyCount < 0) {
          throw new InvalidObjectException("Invalid key count " + keyCount);
        }
        ImmutableMap.Builder<Object, ImmutableSet<Object>> builder = ImmutableMap.builder();
        int tmpSize = 0;
    
        for (int i = 0; i < keyCount; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2.go

    	return time.Unix(0, x.versions[0].header.ModTime)
    }
    
    func (x *xlMetaV2) addVersion(ver xlMetaV2Version) error {
    	modTime := ver.getModTime().UnixNano()
    	if !ver.Valid() {
    		return errors.New("attempted to add invalid version")
    	}
    	encoded, err := ver.MarshalMsg(nil)
    	if err != nil {
    		return err
    	}
    
    	// returns error if we have exceeded configured object max versions
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 65.6K bytes
    - Viewed (1)
  6. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        }
    
        @Test
        @DisplayName("hasCapability delegates and propagates exceptions")
        void hasCapabilityDelegates() throws Exception {
            // Happy path delegates; invalid case propagates SmbException
            when(treeConnection.hasCapability(123)).thenReturn(true);
            assertTrue(handle.hasCapability(123));
            verify(treeConnection).hasCapability(123);
    
            // Exception path
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                    throw new SMBProtocolDecodingException("Buffer cannot be null");
                }
                if (bufferIndex < 0 || len < 0) {
                    throw new SMBProtocolDecodingException("Invalid buffer parameters");
                }
                if (bufferIndex + len > buffer.length) {
                    throw new SMBProtocolDecodingException("Buffer overflow");
                }
    
                // Store the decoded data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

                }
            } catch (Exception e) {
                // Test setup exception is acceptable
                assertNotNull(e);
            }
        }
    
        // Test main method with invalid arguments
        public void test_main_invalidArguments() {
            // Cannot directly test main as it calls System.exit
            // Test argument parsing instead
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         */
        fun validityInterval(
          notBefore: Long,
          notAfter: Long,
        ) = apply {
          require(notBefore <= notAfter && notBefore == -1L == (notAfter == -1L)) {
            "invalid interval: $notBefore..$notAfter"
          }
          this.notBefore = notBefore
          this.notAfter = notAfter
        }
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedLongs.java

         * unsigned long. This is useful for detecting overflow while parsing a string representation of
         * a number. Does not verify whether supplied radix is valid, passing an invalid radix will give
         * undefined results or an ArrayIndexOutOfBoundsException.
         */
        static boolean overflowInParse(long current, int digit, int radix) {
          if (current >= 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top