Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,149 for LookUp (0.11 sec)

  1. pkg/env/var.go

    // It returns the value, which will be the default if the variable is not present.
    // To distinguish between an empty value and an unset value, use Lookup.
    func (v StringVar) Get() string {
    	result, _ := v.Lookup()
    	return result
    }
    
    // Lookup retrieves the value of the environment variable. If the
    // variable is present in the environment the
    // value (which may be empty) is returned and the boolean is true.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/TwoStageModuleArtifactCacheTest.groovy

            0 * readCache._
        }
    
        def "lookup searches the write index then delegates to the read index"() {
            when:
            twoStageCache.lookup(key)
    
            then:
            1 * writeCache.lookup(key) >> null
            1 * readCache.lookup(key)
    
            when:
            twoStageCache.lookup(key)
    
            then:
            1 * writeCache.lookup(key) >> Stub(CachedArtifact)
            0 * readCache._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. pkg/env/var_test.go

    	ev := RegisterStringVar(testVar, "123", "")
    	v, present := ev.Lookup()
    	if v != "123" {
    		t.Errorf("Expected 123, got %s", v)
    	}
    	if present {
    		t.Errorf("Expected not present")
    	}
    
    	v = ev.Get()
    	if v != "123" {
    		t.Errorf("Expected 123, got %s", v)
    	}
    
    	_ = os.Setenv(testVar, "ABC")
    
    	ev = RegisterStringVar(testVar, "123", "")
    	v, present = ev.Lookup()
    	if v != "ABC" {
    		t.Errorf("Expected ABC, got %s", v)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java

        }
    
        @Override
        public <T> T lookup(Class<T> type) {
            try {
                return container.lookup(type);
            } catch (ComponentLookupException e) {
                throw new LookupException(e);
            }
        }
    
        @Override
        public <T> T lookup(Class<T> type, String name) {
            try {
                return container.lookup(type, name);
            } catch (ComponentLookupException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jan 10 12:55:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

            private Instant startTime = Instant.now();
    
            DefaultSession(RepositorySystemSession session, RepositorySystem repositorySystem, Lookup lookup) {
                this(session, repositorySystem, Collections.emptyList(), null, lookup);
            }
    
            protected DefaultSession(
                    RepositorySystemSession session,
                    RepositorySystem repositorySystem,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/AbstractCallInterceptor.java

    import java.util.Set;
    
    public abstract class AbstractCallInterceptor implements CallInterceptor {
        private static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();
    
        private static final MethodHandle INTERCEPTOR;
    
        static {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 14:02:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/internal/objfile/disasm.go

    type disasmFunc func(code []byte, pc uint64, lookup lookupFunc, ord binary.ByteOrder, _ bool) (text string, size int)
    
    func disasm_386(code []byte, pc uint64, lookup lookupFunc, _ binary.ByteOrder, gnuAsm bool) (string, int) {
    	return disasm_x86(code, pc, lookup, 32, gnuAsm)
    }
    
    func disasm_amd64(code []byte, pc uint64, lookup lookupFunc, _ binary.ByteOrder, gnuAsm bool) (string, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/lookup_test.go

    	lookup := func() {
    		for _, name := range names {
    			typ := scope.Lookup(name).Type()
    			LookupFieldOrMethod(typ, true, pkg, "m")
    		}
    	}
    
    	// Perform a lookup once, to ensure that any lazily-evaluated state is
    	// complete.
    	lookup()
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		lookup()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 15:31:35 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/cached/TwoStageByUrlCachedExternalResourceIndex.java

            writableCache.storeMissing(key);
        }
    
        @Nullable
        @Override
        public CachedExternalResource lookup(String key) {
            CachedExternalResource lookup = writableCache.lookup(key);
            if (lookup != null) {
                return lookup;
            }
            return readOnlyCache.lookup(key);
        }
    
        @Override
        public void clear(String key) {
            writableCache.clear(key);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/state/DefaultManagedFactoryRegistryTest.groovy

            expect:
            registry.lookup(fooFactory.id) == fooFactory
        }
    
        def "returns null for unknown type"() {
            def fooFactory = factory(Foo)
            def barFactory = factory(Bar)
            def buzzFactory = factory(Buzz)
            registry.withFactories(barFactory, fooFactory)
    
            expect:
            registry.lookup(buzzFactory.id) == null
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top