Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 44 for testable (0.08 seconds)

  1. src/test/java/org/codelibs/fess/app/job/ScriptExecutorJobTest.java

                    return "OK";
                }
            };
            ComponentUtil.register(jobExecutor, "scriptJobExecutor");
        }
    
        /**
         * Testable subclass that exposes the protected process() method.
         */
        private static class TestableScriptExecutorJob extends ScriptExecutorJob {
            @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  2. gradlew

    #         * functions;
    #         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
    #           «${var#prefix}», «${var%suffix}», and «$( cmd )»;
    #         * compound commands having a testable exit status, especially «case»;
    #         * various built-in commands including «command», «set», and «ulimit».
    #
    #   Important for patching:
    #
    #   (2) This script targets any POSIX shell, so it avoids extensions provided
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 08:59:10 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/filter/LoadControlFilterTest.java

        //                                                                    Helper Classes
        //                                                                    ================
    
        /**
         * Testable subclass that bypasses ComponentUtil dependencies.
         * This allows testing the filter logic without requiring the DI container.
         */
        private static class TestableLoadControlFilter extends LoadControlFilter {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

        public void test_getName_returnsGroovy() {
            final TestableGroovyEngine testEngine = new TestableGroovyEngine();
            assertEquals("groovy", testEngine.testGetName());
        }
    
        /**
         * Testable GroovyEngine subclass for testing protected methods
         */
        static class TestableGroovyEngine extends GroovyEngine {
            boolean logScriptExecutionCalled = false;
            String lastLoggedScript = null;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/chat/ChatClientTest.java

            chatClient.resetSearchDocumentsCalled();
    
            final List<Map<String, Object>> result = chatClient.testSearchWithQuery("nonexistent");
            assertTrue(result.isEmpty());
        }
    
        // ========== Testable subclass ==========
    
        static class TestableChatClient extends ChatClient {
    
            private boolean searchDocumentsCalled = false;
            private final List<String> searchedQueries = new ArrayList<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 40.6K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

                    return 3;
                }
            });
    
            helper.tryStartOperation("test_op", null);
            assertEquals(3, passedRetries.get());
        }
    
        /**
         * Creates a testable CoordinatorHelper that overrides tryStartOperation(name,data,retries)
         * to simulate "create always fails" (no OpenSearch), preserving the retry/cleanup dispatch logic.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java

            assertEquals("Q2", request.getMessages().get(0).getContent());
            assertEquals("Q3", request.getMessages().get(1).getContent());
        }
    
        // ========== Testable subclass ==========
    
        @FunctionalInterface
        interface StreamChatCapture {
            void capture(LlmChatRequest request, LlmStreamCallback callback);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 53K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

        }
    
        void initTable(AtomicReferenceArray<ReferenceEntry<K, V>> newTable) {
          this.threshold = newTable.length() * 3 / 4; // 0.75
          if (!map.customWeigher() && this.threshold == maxSegmentWeight) {
            // prevent spurious expansion before eviction
            this.threshold++;
          }
          this.table = newTable;
        }
    
        @GuardedBy("this")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  9. guava/src/com/google/common/cache/LocalCache.java

        }
    
        void initTable(AtomicReferenceArray<ReferenceEntry<K, V>> newTable) {
          this.threshold = newTable.length() * 3 / 4; // 0.75
          if (!map.customWeigher() && this.threshold == maxSegmentWeight) {
            // prevent spurious expansion before eviction
            this.threshold++;
          }
          this.table = newTable;
        }
    
        @GuardedBy("this")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  10. migrator/migrator.go

    			return tx.Exec("DROP TABLE IF EXISTS ?", m.CurrentTable(stmt)).Error
    		}); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // HasTable returns table exists or not for value, value could be a struct or string
    func (m Migrator) HasTable(value interface{}) bool {
    	var count int64
    
    	m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		currentDatabase := m.DB.Migrator().CurrentDatabase()
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 29.8K bytes
    - Click Count (0)
Back to Top