Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 518 for pattern1 (0.06 sec)

  1. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.tryParse(input)).isEqualTo(Double.valueOf(expected));
        assertThat(input)
            .matches(
                Pattern.compile(
                    Doubles.FLOATING_POINT_PATTERN.pattern(), Doubles.FLOATING_POINT_PATTERN.flags()));
      }
    
      @GwtIncompatible // Doubles.tryParse
      public void testTryParseHex() {
        for (String signChar : ImmutableList.of("", "+", "-")) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  2. internal/config/compress/compress_test.go

    			}
    			if testCase.success && err != nil {
    				t.Errorf("expected success but failed instead %s", err)
    			}
    			if testCase.success && !reflect.DeepEqual(testCase.expectedPatterns, gotPatterns) {
    				t.Errorf("expected patterns %s but got %s", testCase.expectedPatterns, gotPatterns)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  3. internal/event/rules_test.go

    	rulesCase7.Add(NewPattern("", "*.jpg"), TargetID{"1", "webhook"})
    
    	rulesCase8 := make(Rules)
    	rulesCase8.Add(NewPattern("2010*", ""), TargetID{"1", "webhook"})
    
    	testCases := []struct {
    		rules          Rules
    		pattern        string
    		targetID       TargetID
    		expectedResult int
    	}{
    		{rulesCase1, NewPattern("*", ""), TargetID{"1", "webhook"}, 1},
    		{rulesCase2, NewPattern("*", ""), TargetID{"2", "amqp"}, 2},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  4. istioctl/pkg/admin/istiodconfig_test.go

    		validationPattern string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		want    *ScopeLevelPair
    		wantErr bool
    	}{
    		{
    			name:    "Fail when logs scope-level pair don't match pattern",
    			args:    args{validationPattern: validationPattern, slp: "invalid:pattern"},
    			wantErr: true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. docs_src/query_params_str_validations/tutorial004_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: str | None = Query(
            default=None, min_length=3, max_length=50, pattern="^fixedquery$"
        ),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 335 bytes
    - Viewed (0)
  6. build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts

                            testClassesDirs += sharedArchTestClasses.filter { it.isDirectory }
                            classpath += sourceSets["main"].output.classesDirs
                            systemProperty("package.cycle.exclude.patterns", packageCyclesExtension.excludePatterns.get().joinToString(","))
                            extensions.findByType<DevelocityTestConfiguration>()?.apply {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jul 03 16:00:02 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

    /**
     */
    public class PluginDescriptor extends ComponentSetDescriptor implements Cloneable {
    
        private static final String LIFECYCLE_DESCRIPTOR = "META-INF/maven/lifecycle.xml";
    
        private static final Pattern PATTERN_FILTER_1 = Pattern.compile("-?(maven|plugin)-?");
    
        private String groupId;
    
        private String artifactId;
    
        private String version;
    
        private String goalPrefix;
    
        private String source;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/Constants.java

        public static final Pattern LUCENE_FIELD_RESERVED_PATTERN = Pattern.compile("([+\\-!\\(\\){}\\[\\]^\"~\\\\:\\p{Zs}]|(&&)|(\\|\\|))"); // "*", "?",
    
        public static final Pattern LUCENE_RANGE_FIELD_RESERVED_PATTERN = Pattern.compile("([!\\(\\){}\\[\\]\"~\\\\:\\p{Zs}]|(&&)|(\\|\\|))");
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 22 12:43:18 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial004_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            Union[str, None], Query(min_length=3, max_length=50, pattern="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 381 bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial004_an.py

    from fastapi import FastAPI, Query
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            Union[str, None], Query(min_length=3, max_length=50, pattern="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 410 bytes
    - Viewed (0)
Back to top