Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for withSource (0.17 sec)

  1. src/testing/slogtest/slogtest.go

    	{
    		name:        "built-ins",
    		explanation: withSource("this test expects slog.TimeKey, slog.LevelKey and slog.MessageKey"),
    		f: func(l *slog.Logger) {
    			l.Info("message")
    		},
    		checks: []check{
    			hasKey(slog.TimeKey),
    			hasKey(slog.LevelKey),
    			hasAttr(slog.MessageKey, "message"),
    		},
    	},
    	{
    		name:        "attrs",
    		explanation: withSource("a Handler should output attributes passed to the logging function"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podresourceclaim.go

    	b.Name = &value
    	return b
    }
    
    // WithSource sets the Source field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Source field is set to the value of the last call.
    func (b *PodResourceClaimApplyConfiguration) WithSource(value *ClaimSourceApplyConfiguration) *PodResourceClaimApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:22:42 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

        }
    
        def "can combine categories with custom runner"() {
            given:
            testSources.with {
                testCategory('CategoryA')
                sourceFile('LocaleHolder.java').withSource("""
                    import java.util.Locale;
    
                    class LocaleHolder {
                        private static Locale locale;
    
                        public static Locale set(Locale locale) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/ModuleSources.java

    public interface ModuleSources {
        <T extends ModuleSource> Optional<T> getSource(Class<T> sourceType);
    
        void withSources(Consumer<ModuleSource> consumer);
    
        /**
         * Executes an action on the first source found of the following type, if any.
         */
        default <T extends ModuleSource, R> R withSource(Class<T> sourceType, Function<Optional<T>, R> action) {
            return action.apply(getSource(sourceType));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterCategoriesOrTagsCoverageIntegrationTest.groovy

        }
    
        def "can combine tags with custom extension"() {
            given:
            testSources.with {
                sourceFile("Locales.java").withSource("""
                    import org.junit.jupiter.api.extension.Extension;
                    import org.junit.jupiter.api.extension.ExtensionContext;
                    import org.junit.jupiter.api.extension.ParameterContext;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/LoggingDeprecatedFeatureHandlerTest.groovy

            message.contains('some.ArbitraryClass.withSource')
    
            where:
            fakeStackTrace = [
                new StackTraceElement(LoggingDeprecatedFeatureHandlerTest.name, 'calledFrom', 'FeatureUsageTest.java', 23),
                new StackTraceElement('some.ArbitraryClass', 'withSource', 'ArbitraryClass.java', 42),
            ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 16:09:54 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/caching/ComponentMetadataRuleExecutor.java

        }
    
        private static Transformer<Object, ModuleComponentResolveMetadata> getKeyToSnapshotableTransformer() {
            return moduleMetadata -> moduleMetadata.getSources().withSource(ModuleDescriptorHashModuleSource.class, source -> {
                return source.map(metadataFileSource -> metadataFileSource.getDescriptorHash().toString() + moduleMetadata.getVariantDerivationStrategy().getClass().getName())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DependencyVerifyingModuleComponentRepository.java

                    sources.withSources(DefaultMetadataFileSource.class, metadataFileSource -> {
                        ModuleComponentArtifactIdentifier artifact = metadataFileSource.getArtifactId();
                        if (isExternalArtifactId(artifact)) {
                            sources.withSource(ModuleDescriptorHashModuleSource.class, hashSource -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 17:38:42 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/fake.go

    	panic("unimplemented")
    }
    
    func (f *recorderResourceManager) ServeHTTP(http.ResponseWriter, *http.Request) {
    	panic("unimplemented")
    }
    
    func (f *recorderResourceManager) WithSource(source Source) ResourceManager {
    	panic("unimplemented")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler.go

    	// Returns the same resource manager using a different source
    	// The source is used to decide how to de-duplicate groups.
    	// The group from the least-numbered source is used
    	WithSource(source Source) ResourceManager
    
    	http.Handler
    }
    
    type resourceManager struct {
    	source Source
    	*resourceDiscoveryManager
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top