Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 601 for negative (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            setupCountField.setAccessible(true);
            assertEquals(255, setupCountField.get(response));
        }
    
        @Test
        @DisplayName("Test negative values handling (as unsigned)")
        void testNegativeValuesAsUnsigned() throws Exception {
            byte[] buffer = new byte[100];
            int bufferIndex = 0;
    
            // Reserved bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            // Act/Assert
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> req.writeBytesWireFormat(tiny, 0));
        }
    
        @Test
        @DisplayName("writeBytesWireFormat throws with negative index")
        void writeBytesWireFormat_throwsIfNegativeIndex() {
            // Arrange
            Smb2LogoffRequest req = newRequest();
            byte[] buf = new byte[4];
    
            // Act/Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. cmd/service.go

    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    	globalServiceFreezeMu.Unlock()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 28 07:02:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            // Service accessors
            assertEquals("cifs", auth.getService());
            auth.setService("");
            assertEquals("", auth.getService());
    
            // Lifetime accessors (edge: zero/negative)
            auth.setUserLifeTime(0);
            assertEquals(0, auth.getUserLifeTime());
            auth.setUserLifeTime(-1);
            assertEquals(-1, auth.getUserLifeTime());
    
            auth.setLifeTime(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            assertEquals(0.0f, elevateWord.getBoost(), 0.001f);
        }
    
        @Test
        public void testConstructorWithNegativeBoost() {
            // Test constructor with negative boost
            String word = "negative boost";
            float boost = -1.5f;
            List<String> readings = Arrays.asList("reading1");
            List<String> fields = Arrays.asList("field1");
            List<String> tags = Arrays.asList("tag1");
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/HashBasedTable.java

       * @param expectedCellsPerRow the expected number of column key / value mappings in each row
       * @throws IllegalArgumentException if {@code expectedRows} or {@code expectedCellsPerRow} is
       *     negative
       */
      public static <R, C, V> HashBasedTable<R, C, V> create(
          int expectedRows, int expectedCellsPerRow) {
        checkNonnegative(expectedCellsPerRow, "expectedCellsPerRow");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

                    Arguments.of(Integer.MAX_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, 999_999_999_999L, -1L), // extremes
                    Arguments.of(-1, -2L, -3L, -4L, -5L) // negative values
            );
        }
    
        // --- Mockito interaction: verify each getter is invoked and returns stubbed values ---
        @Test
        void mockitoMock_verifiesGetterInteractions() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/HashBasedTable.java

       * @param expectedCellsPerRow the expected number of column key / value mappings in each row
       * @throws IllegalArgumentException if {@code expectedRows} or {@code expectedCellsPerRow} is
       *     negative
       */
      public static <R, C, V> HashBasedTable<R, C, V> create(
          int expectedRows, int expectedCellsPerRow) {
        checkNonnegative(expectedCellsPerRow, "expectedCellsPerRow");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. cmd/dynamic-timeouts.go

    }
    
    // newDynamicTimeout returns a new dynamic timeout initialized with timeout value
    func newDynamicTimeout(timeout, minimum time.Duration) *dynamicTimeout {
    	if timeout <= 0 || minimum <= 0 {
    		panic("newDynamicTimeout: negative or zero timeout")
    	}
    	if minimum > timeout {
    		minimum = timeout
    	}
    	return &dynamicTimeout{timeout: int64(timeout), minimum: int64(minimum)}
    }
    
    // Timeout returns the current timeout value
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/lex.go

    )
    
    // IsRegisterShift reports whether the token is one of the ARM register shift operators.
    func IsRegisterShift(r ScanToken) bool {
    	return ROT <= r && r <= LSH // Order looks backwards because these are negative.
    }
    
    func (t ScanToken) String() string {
    	switch t {
    	case scanner.EOF:
    		return "EOF"
    	case scanner.Ident:
    		return "identifier"
    	case scanner.Int:
    		return "integer constant"
    	case scanner.Float:
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top