Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for test_fields (0.06 seconds)

  1. src/test/java/org/codelibs/fess/util/QueryStringBuilderTest.java

            assertEquals("query1 query2",
                    getQuery("", new String[] { "query1", "query2" }, Collections.emptyMap(), Collections.emptyMap(), false));
        }
    
        @Test
        public void test_fields() {
            final Map<String, String[]> fields = Collections.singletonMap("title", new String[] { "test" });
            assertEquals("title:\"test\"", getQuery("", new String[0], fields, Collections.emptyMap(), false));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

    import jakarta.validation.Payload;
    
    public class CustomSizeTest extends UnitFessTestCase {
    
        // Test field with CustomSize annotation for testing
        @CustomSize(minKey = "test.min", maxKey = "test.max")
        private String testField;
    
        // Test field with only minKey
        @CustomSize(minKey = "test.min.only")
        private String testFieldMinOnly;
    
        // Test field with only maxKey
        @CustomSize(maxKey = "test.max.only")
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/query/QueryFieldConfigSetBasedLookupTest.java

            String testField = "field999";
    
            // Warm up
            for (int i = 0; i < 100; i++) {
                queryFieldConfig.isSortField(testField);
            }
    
            // Measure Set-based lookup (current implementation)
            long setStartTime = System.nanoTime();
            for (int i = 0; i < 10000; i++) {
                queryFieldConfig.isSortField(testField);
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19.4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/query/QueryCommandTemplateMethodTest.java

            String testField = "field999";
    
            // Warm up
            for (int i = 0; i < 100; i++) {
                queryCommand.isSearchField(testField);
            }
    
            // Measure Set-based lookup
            long startTime = System.nanoTime();
            for (int i = 0; i < 10000; i++) {
                queryCommand.isSearchField(testField);
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  5. internal/config/config_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package config
    
    import (
    	"testing"
    )
    
    func TestKVFields(t *testing.T) {
    	tests := []struct {
    		input          string
    		keys           []string
    		expectedFields map[string]struct{}
    	}{
    		// No keys present
    		{
    			input:          "",
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

        }
    
        @Test
        @SuppressWarnings("unchecked")
        public void test_indexFromDocumentWithFieldAnalyzer() throws Exception {
            String field = "testField";
    
            Map<String, String> analyzerMapping = new HashMap<>();
            analyzerMapping.put(FieldNames.ANALYZER_SETTINGS_TYPE, AnalyzerSettings.FIELD_ANALYZER_MAPPING);
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  7. src/bytes/bytes_test.go

    	{"1\u20002\u20013\u20024", []string{"1", "2", "3", "4"}},
    	{"\u2000\u2001\u2002", []string{}},
    	{"\n™\t™\n", []string{"™", "™"}},
    	{faces, []string{faces}},
    }
    
    func TestFields(t *testing.T) {
    	for _, tt := range fieldstests {
    		b := []byte(tt.s)
    		a := Fields(b)
    
    		// Appending to the results should not change future results.
    		var x []byte
    		for _, v := range a {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Mar 11 03:07:05 GMT 2026
    - 62.9K bytes
    - Click Count (0)
Back to Top