Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 129 for getDst (0.06 seconds)

  1. internal/ringbuffer/ring_buffer.go

    	r.mu.Lock()
    	defer r.mu.Unlock()
    	getDst := func(n int) []byte {
    		if cap(dst) < n {
    			return make([]byte, n)
    		}
    		return dst[:n]
    	}
    
    	if r.w == r.r {
    		if r.isFull {
    			buf := getDst(r.size)
    			copy(buf, r.buf[r.r:])
    			copy(buf[r.size-r.r:], r.buf[:r.w])
    			return buf
    		}
    		return nil
    	}
    
    	if r.w > r.r {
    		buf := getDst(r.w - r.r)
    		copy(buf, r.buf[r.r:r.w])
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.getString("response.id");
        }
    
        protected static List<String> getWebConfigIds(final String namePrefix) {
            final String response = getJsonResponse("/api/admin/webconfig/settings");
            final List<String> idList = JsonPath.from(response).getList(getResponsePath(namePrefix) + ".id");
            return idList;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            String response = checkMethodBase(searchBody).get("/api/admin/crawlinginfo/logs").asString();
            JsonPath jsonPath = JsonPath.from(response);
            assertEquals(0, jsonPath.getInt("response.status"));
            List<Map<String, Object>> logs = jsonPath.getList("response.logs");
            assertTrue(logs.size() >= 1);
    
            // Test with pagination
            searchBody.put("size", 10);
            searchBody.put("page", 1);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:01:34 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

            JsonPath jsonPath = JsonPath.from(searchResponse);
            String queryId = jsonPath.getString("query_id");
            List<Map<String, Object>> docs = jsonPath.getList("data");
    
            if (docs != null && !docs.isEmpty()) {
                String docId = docs.get(0).get("doc_id").toString();
    
                // Set favorite
                Map<String, String> params = new HashMap<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            String response = checkMethodBase(new HashMap<>()).params(params).get("/api/v1/documents").asString();
            assertTrue(JsonPath.from(response).getInt("record_count") > 0);
            List<Map<String, Object>> docs = JsonPath.from(response).getList("data");
            for (Map<String, Object> doc : docs) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 21 13:29:45 GMT 2025
    - 19K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      public void testSubList_startNegative() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().subList(-1, 0));
      }
    
      public void testSubList_endTooLarge() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().subList(0, getNumElements() + 1));
      }
    
      public void testSubList_startGreaterThanEnd() {
        try {
          getList().subList(1, 0);
          fail("subList(1, 0) should throw");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      public void testSubList_startNegative() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().subList(-1, 0));
      }
    
      public void testSubList_endTooLarge() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().subList(0, getNumElements() + 1));
      }
    
      public void testSubList_startGreaterThanEnd() {
        try {
          getList().subList(1, 0);
          fail("subList(1, 0) should throw");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/it/admin/FailureUrlTests.java

            List<Map<String, Object>> page1 = JsonPath.from(response).getList("response.logs");
    
            logger.info("Page 1: {}", page1);
    
            // Get second page
            searchBody.put("page", 2);
            response = checkMethodBase(searchBody).get(API_PATH + "/logs").asString();
            List<Map<String, Object>> page2 = JsonPath.from(response).getList("response.logs");
    
            logger.info("Page 2: {}", page2);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/it/admin/JobLogTests.java

            List<Map<String, Object>> page1 = JsonPath.from(response).getList("response.logs");
    
            logger.info("Page 1: {}", page1);
    
            // Get second page
            searchBody.put("page", 2);
            response = checkMethodBase(searchBody).get(API_PATH + "/logs").asString();
            List<Map<String, Object>> page2 = JsonPath.from(response).getList("response.logs");
    
            logger.info("Page 2: {}", page2);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 21 13:29:45 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/lang/FieldUtil.java

         * @return the field value
         * @throws IllegalAccessRuntimeException {@link IllegalAccessException} if an error occurs
         * @see #getInt(Field, Object)
         */
        public static int getInt(final Field field) throws IllegalAccessRuntimeException {
            assertArgumentNotNull("field", field);
    
            return getInt(field, null);
        }
    
        /**
         * Returns the value of a {@link Field} as an int.
         *
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 9.8K bytes
    - Click Count (0)
Back to Top