Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for withValues (0.34 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultProjectLayoutTest.groovy

    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.api.internal.provider.ProviderTestUtil.withNoValue
    import static org.gradle.api.internal.provider.ProviderTestUtil.withValues
    import static org.gradle.util.Matchers.strictlyEquals
    
    class DefaultProjectLayoutTest extends Specification {
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 23 16:13:03 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderFactoryTest.groovy

            Double    | 6.6d
            Character | '\u1234'
            String    | 'hello'
            File      | TEST_FILE
        }
    
        def "can zip two providers"() {
            def big = withValues("big")
            def black = withValues("black")
            def cat = withValues("cat")
    
            when:
            def zipped = providerFactory.zip(
                    providerFactory.zip(big, black) { s1, s2 -> "$s1 $s2" } ,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/nodeselectorrequirement.go

    	b.Operator = &value
    	return b
    }
    
    // WithValues adds the given value to the Values field in the declarative configuration
    // and returns the receiver, so that objects can be build by chaining "With" function invocations.
    // If called multiple times, values provided by each call will be appended to the Values field.
    func (b *NodeSelectorRequirementApplyConfiguration) WithValues(values ...string) *NodeSelectorRequirementApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/podfailurepolicyonexitcodesrequirement.go

    	b.Operator = &value
    	return b
    }
    
    // WithValues adds the given value to the Values field in the declarative configuration
    // and returns the receiver, so that objects can be build by chaining "With" function invocations.
    // If called multiple times, values provided by each call will be appended to the Values field.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 16:39:08 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. hack/logcheck.conf

    contextual k8s.io/kubernetes/pkg/controller/.*
    contextual k8s.io/kubernetes/pkg/scheduler/.*
    contextual k8s.io/kubernetes/test/e2e/dra/.*
    
    # As long as contextual logging is alpha or beta, all WithName, WithValues,
    # NewContext calls have to go through klog. Once it is GA, we can lift
    # this restriction. Whether we then do a global search/replace remains
    # to be decided.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. pkg/log/logr.go

    		}
    	}
    }
    
    func (zl *zapLogger) V(int) logr.Logger {
    	zlog := &zapLogger{
    		l: zl.l,
    	}
    
    	return logr.New(zlog)
    }
    
    func (zl *zapLogger) WithValues(keysAndValues ...any) logr.LogSink {
    	return NewLogrAdapter(zl.l.WithLabels(keysAndValues...)).GetSink()
    }
    
    func (zl *zapLogger) WithName(string) logr.LogSink {
    	return zl
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderTestUtil.java

    @SuppressWarnings("unchecked")
    public class ProviderTestUtil {
        public static <T> ProviderInternal<T> withNoValue() {
            return Providers.notDefined();
        }
    
        public static <T> ProviderInternal<T> withValues(T... values) {
            assert values.length > 0;
            return new TestProvider<>(Cast.uncheckedNonnullCast(values[0].getClass()), Arrays.asList(values), null);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 05:02:13 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. hack/golangci-hints.yaml

              contextual k8s.io/kubernetes/pkg/scheduler/.*
              contextual k8s.io/kubernetes/test/e2e/dra/.*
              
              # As long as contextual logging is alpha or beta, all WithName, WithValues,
              # NewContext calls have to go through klog. Once it is GA, we can lift
              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. hack/golangci-strict.yaml

              contextual k8s.io/kubernetes/pkg/scheduler/.*
              contextual k8s.io/kubernetes/test/e2e/dra/.*
              
              # As long as contextual logging is alpha or beta, all WithName, WithValues,
              # NewContext calls have to go through klog. Once it is GA, we can lift
              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. hack/golangci.yaml

              contextual k8s.io/kubernetes/pkg/scheduler/.*
              contextual k8s.io/kubernetes/test/e2e/dra/.*
              
              # As long as contextual logging is alpha or beta, all WithName, WithValues,
              # NewContext calls have to go through klog. Once it is GA, we can lift
              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top