Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 886 for zero (0.02 sec)

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

        @Test
        @DisplayName("Test readDataWireFormat with error code returns 4")
        void testReadDataWireFormatWithErrorCode() throws Exception {
            byte[] buffer = new byte[100];
    
            // Set error code to non-zero
            setErrorCode(response, 1);
    
            int result = response.readDataWireFormat(buffer, 0, buffer.length);
    
            assertEquals(4, result);
            assertNull(response.getSecurityDescriptor());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacUnicodeString.java

            return this.pointer;
        }
    
        /**
         * Validates the provided string against this structure's metadata.
         * Checks that the string length matches the expected length and that
         * null strings have a zero pointer.
         *
         * @param string the string to validate
         * @return the validated string
         * @throws PACDecodingException if validation fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            // Test null version
            NullSearchLogEvent nullEvent = new NullSearchLogEvent();
            assertNull(nullEvent.getVersionNo());
    
            // Test zero version
            EmptySearchLogEvent emptyEvent = new EmptySearchLogEvent();
            assertEquals(Long.valueOf(0L), emptyEvent.getVersionNo());
    
            // Test negative version
            event.setVersionNo(-1L);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            assertEquals(0, response.getData().length);
            // The decode method returns only the header size (16 bytes)\n        assertEquals(16, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test decode with non-zero buffer index")
        void testDecodeWithNonZeroBufferIndex() throws SMBProtocolDecodingException {
            // Prepare test data with offset
            int offset = 10;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. cmd/metrics-v3-types.go

    	}
    
    	if len(labels)/2 != len(validLabels) {
    		panic("not all labels were given values")
    	}
    
    	v, ok := m.values[name]
    	if !ok {
    		v = make([]metricValue, 0, 1)
    	}
    	// If valid non zero value set the metrics
    	if value > 0 {
    		m.values[name] = append(v, metricValue{
    			Labels: labelMap,
    			Value:  value,
    		})
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Feb 28 19:33:08 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    		if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil {
    			return nil, nil, err // EOF is okay here; exactly 1 block of zeros read
    		}
    		if bytes.Equal(tr.blk[:], zeroBlock[:]) {
    			return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read
    		}
    		return nil, nil, ErrHeader // Zero block and then non-zero block
    	}
    
    	// Verify the header matches a known format.
    	format := tr.blk.getFormat()
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     * {@link NdrBuffer#enc_ndr_hyper(long)} and {@link NdrBuffer#dec_ndr_hyper()}.
     * The tests verify that:
     * <ul>
     *   <li>encoding and decoding round‑trip correctly handle typical, zero,
     *       and extreme {@code long} values.</li>
     *   <li>encode/decode methods interact correctly with a mocked
     *       {@link NdrBuffer} so that the correct method is called with
     *       the correct argument.</li>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

            TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();
            // Assert
            assertNotNull(resp, "Instance should not be null");
        }
    
        /**
         * All wire‑format methods should return zero regardless of inputs.
         */
        @Nested
        @DisplayName("Wire format method behaviour")
        class WireFormatMethods {
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle zero-length file ID")
            void testZeroLengthFileId() {
                request.setFileId(new byte[0]);
                request.setData(new byte[10], 0, 10);
    
                byte[] buffer = new byte[256];
    
                // Should handle zero-length file ID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  10. cmd/api-datatypes.go

    }
    
    // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal
    type DeleteMarkerMTime struct {
    	time.Time
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if t.IsZero() {
    		return nil
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top