Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 267 for getStep (0.19 sec)

  1. platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/pattern/PatternStepFactoryTest.groovy

        def "creates step for ** wildcard"() {
            expect:
            def step = PatternStepFactory.getStep("**", true);
            step instanceof AnyWildcardPatternStep
            step.matches("anything")
            step.matches("")
        }
    
        def "creates step for * wildcard"() {
            expect:
            def step = PatternStepFactory.getStep("*", true);
            step instanceof AnyWildcardPatternStep
            step.matches("anything")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/PatternMatcherFactory.java

                    return new AnythingMatcher();
                }
                return new GreedyPathMatcher(compile(parts, pos, caseSensitive));
            }
            return new FixedStepPathMatcher(PatternStepFactory.getStep(parts.get(pos), caseSensitive), compile(parts, pos + 1, caseSensitive));
        }
    
        @VisibleForTesting
        static class DefaultPatternMatcher extends PatternMatcher {
            private final boolean partialMatchDirs;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/PatternStepFactory.java

     */
    package org.gradle.api.internal.file.pattern;
    
    public class PatternStepFactory {
        private static final AnyWildcardPatternStep ANY_WILDCARD_PATTERN_STEP = new AnyWildcardPatternStep();
    
        public static PatternStep getStep(String source, boolean caseSensitive) {
            if (source.length() == 0) {
                return new FixedPatternStep(source, caseSensitive);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AbstractCaptureStateBeforeExecutionStepTest.groovy

        def implementationSnapshot = ImplementationSnapshot.of("MyWorkClass", TestHashCodes.hashCodeFrom(1234))
    
        abstract AbstractCaptureStateBeforeExecutionStep<PreviousExecutionContext, CachingResult> getStep()
    
        def setup() {
            _ * work.inputFingerprinter >> inputFingerprinter
        }
    
        def "no state is captured when instructed to skip"() {
            when:
            step.execute(work, context)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:34 UTC 2023
    - 7K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/SingleIncludePatternFileTree.java

            } else if (segment.contains("*") || segment.contains("?")) {
                PatternStep step = PatternStepFactory.getStep(segment, false);
                File[] children = file.listFiles();
                if (children == null) {
                    if (!file.canRead()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/virtualservice/util.go

    				RouteRule:        "tls",
    				ServiceIndex:     i,
    				DestinationIndex: j,
    				Destination:      rd.GetDestination(),
    			})
    		}
    	}
    	for i, r := range vs.GetHttp() {
    		for j, rd := range r.GetRoute() {
    			destinations = append(destinations, &AnnotatedDestination{
    				RouteRule:        "http",
    				ServiceIndex:     i,
    				DestinationIndex: j,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 15:18:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/FieldOptionElement.java

            private final Method getter;
            private final Field field;
            private final Class<?> elementType;
    
            public PropertyFieldSetter(Method getter, Field field) {
                this(getter, field, ModelType.of(getter.getGenericReturnType()).getTypeVariables().get(0).getRawClass());
            }
    
            public PropertyFieldSetter(Method getter, Field field, Class<?> elementType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 11 11:28:20 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelCheckerTest.groovy

                dummyModel("otherValue"),
                [
                    { it.value }
                ]
            )
    
            then:
            def error = thrown(AssertionError)
            error.message.contains("assert getter(actual) == getter(expected)")
            error.message.contains("       |      |       |  |")
            error.message.contains("       |      |       |  'otherValue'")
            error.message.contains("       'someValue'")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. pkg/registry/admissionregistration/rest/storage_apiserver.go

    	storage := map[string]rest.Storage{}
    
    	// use a simple wrapper so that initialization order won't cause a nil getter
    	var policyGetter rest.Getter
    
    	r, err := resolver.NewDiscoveryResourceResolver(p.DiscoveryClient)
    	if err != nil {
    		return storage, err
    	}
    
    	// validatingwebhookconfigurations
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/resource/crd_finder_test.go

    	}
    	finder := NewCRDFinder(getter)
    	found, err := finder.HasCRD(schema.GroupKind{Group: "", Kind: "Pod"})
    	if found {
    		t.Fatalf("Found the CRD with non-working getter function")
    	}
    	if err == nil {
    		t.Fatalf("Error in getter should be reported")
    	}
    }
    
    func TestCRDFinder(t *testing.T) {
    	getter := func() ([]schema.GroupKind, error) {
    		return []schema.GroupKind{
    			{
    				Group: "crd.com",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top