Search Options

Results per page
Sort
Preferred Languages
Advance

Results 681 - 690 of 896 for Array (0.02 sec)

  1. cmd/erasure-metadata-utils_test.go

    		if gotNewErr != errErasureWriteQuorum {
    			t.Errorf("Test %d : expected %s, got %s", i+1, errErasureWriteQuorum, gotErr)
    		}
    	}
    }
    
    // TestHashOrder - test order of ints in array
    func TestHashOrder(t *testing.T) {
    	testCases := []struct {
    		objectName  string
    		hashedOrder []int
    	}{
    		// cases which should pass the test.
    		// passing in valid object name.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

                assertEquals(-1, stream.read()); // Should indicate end of stream
            }
        }
    
        @Test
        public void testMemoryBasedCacheWithLargeData() throws IOException {
            // Create a large byte array (1MB)
            byte[] data = new byte[1024 * 1024];
            for (int i = 0; i < data.length; i++) {
                data[i] = (byte) (i % 256);
            }
    
            ContentCache cache = new ContentCache(data);
    
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. mockwebserver/README.md

    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    You can set a custom body with a string, input stream or byte array. Also
    add headers with a fluent builder API.
    
    ### Java
    ```java
    MockResponse response = new MockResponse.Builder()
        .addHeader("Content-Type", "application/json; charset=utf-8")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:40:52 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/rpc.java

            /** The number of sub-authorities in the SID */
            public byte sub_authority_count;
            /** The identifier authority value (6 bytes) */
            public byte[] identifier_authority;
            /** The array of sub-authority values */
            public int[] sub_authority;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            when(transport.getServerEncryptionKey()).thenReturn(key);
            assertArrayEquals(key, transport.getServerEncryptionKey());
            verify(transport).getServerEncryptionKey();
    
            // Empty array
            byte[] empty = new byte[0];
            when(transport.getServerEncryptionKey()).thenReturn(empty);
            assertArrayEquals(empty, transport.getServerEncryptionKey());
    
            // Null
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

    import jakarta.mail.internet.MimeMessage;
    import jakarta.mail.internet.MimeUtility;
    
    /**
     * Gets a text from .eml file.
     *
     * @author shinsuke
     *
     */
    public class EmlExtractor extends AbstractExtractor {
        /** Array of day of week abbreviations used for parsing received dates */
        private static final String[] DAY_OF_WEEK = { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
    
        /** Logger instance for this class */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/QueryHelper.java

        }
    
        /**
         * Gets an array of rescorer builders for post-processing search results.
         * This method evaluates all configured query rescorers with the provided parameters.
         *
         * @param params parameters to pass to the rescorers during evaluation
         * @return an array of rescorer builders, filtered to exclude null values
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/NetbiosAddress.java

        /**
         * Retrieves the MAC address of the remote network interface. Samba returns all zeros.
         *
         * @param tc
         *            context to use
         *
         * @return the MAC address as an array of six bytes
         * @throws UnknownHostException
         *             if the host cannot be resolved to
         *             determine the MAC address.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            assertEquals(1, chain3.updateCallCount);
        }
    
        // Test addChain null handling
        public void test_addChain_withNull() {
            // ArrayUtils.addAll handles null gracefully by adding it to the array
            authenticationManager.addChain(null);
    
            // Verify null chain doesn't cause issues during operations
            User user = createTestUser("testuser");
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/entity/FacetInfoTest.java

            facetInfo.sort = "key.ASC";
            order = facetInfo.getBucketOrder();
            assertNotNull(order);
            assertEquals(BucketOrder.key(true), order);
        }
    
        // Test addQuery with null query array
        public void test_addQuery_nullArray() {
            assertNull(facetInfo.query);
            facetInfo.addQuery("query1");
            assertNotNull(facetInfo.query);
            assertEquals(1, facetInfo.query.length);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top