- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 385 for getDst (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) -
src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java
String response = checkGetMethod(searchBody, getListEndpointSuffix()).asString(); final int total = JsonPath.from(response).getInt("response.total"); final List<Map<String, String>> items = JsonPath.from(response).getList("response.settings"); final int status = JsonPath.from(response).getInt("response.status"); assertEquals(total, items.size()); assertEquals(0, status); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 15 06:53:53 GMT 2025 - 3.3K bytes - Click Count (0) -
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) -
src/test/java/org/codelibs/fess/it/search/SuggestWordsApiTests.java
.when() .get("/api/v1/suggest-words") .asString(); JsonPath jsonPath = JsonPath.from(response); assertTrue(jsonPath.getInt("record_count") >= 0); List<Object> data = jsonPath.getList("data"); if (data != null) { assertTrue(data.size() <= 5, "Number of results should be at most 5"); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 5.7K bytes - Click Count (0) -
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) -
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) -
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) -
src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java
JsonPath jsonPath = JsonPath.from(response); int recordCount = jsonPath.getInt("record_count"); assertTrue(recordCount >= 0, "Record count should be >= 0"); if (recordCount > 0) { List<Map<String, Object>> labels = jsonPath.getList("data"); assertTrue(labels != null, "Data should not be null when labels exist"); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 4.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java
*/ public void testAddAtIndex_unsupportedPresent() { assertThrows(UnsupportedOperationException.class, () -> getList().add(0, e0())); expectUnchanged(); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) public void testAddAtIndex_supportedNotPresent() { getList().add(0, e3()); expectAdded(0, e3()); } @CollectionFeature.Require(FAILS_FAST_ON_CONCURRENT_MODIFICATION)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java
E duplicate = arrayAndDuplicate.duplicate; int firstIndex = getList().indexOf(duplicate); int initialSize = getList().size(); assertTrue("remove(present) should return true", getList().remove(duplicate)); assertTrue( "After remove(duplicate), a list should still contain the duplicate element", getList().contains(duplicate)); assertFalse(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.6K bytes - Click Count (0)