Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,554 for ensure (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/informer.go

    type informer[T runtime.Object] struct {
    	cache.SharedIndexInformer
    	lister[T]
    }
    
    // Creates a generic informer around a type-erased cache.SharedIndexInformer
    // It is incumbent on the caller to ensure that the generic type argument is
    // consistent with the type of the objects stored inside the SharedIndexInformer
    // as they will be casted.
    func NewInformer[T runtime.Object](informe cache.SharedIndexInformer) Informer[T] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/internal/testlog/exit.go

    // PanicOnExit0 reports whether to panic on a call to os.Exit(0).
    // This is in the testlog package because, like other definitions in
    // package testlog, it is a hook between the testing package and the
    // os package. This is used to ensure that an early call to os.Exit(0)
    // does not cause a test to pass.
    func PanicOnExit0() bool {
    	panicOnExit0.mu.Lock()
    	defer panicOnExit0.mu.Unlock()
    	return panicOnExit0.val
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/c/tf_status_helper_test.cc

      ASSERT_FALSE(another_cc_status.ok());
      ASSERT_EQ(std::string("some error"), another_cc_status.message());
      ASSERT_EQ(error::INVALID_ARGUMENT, another_cc_status.code());
      // Ensure the payloads are not lost during conversions
      ASSERT_EQ(cc_status.GetPayload("key1"), another_cc_status.GetPayload("key1"));
      ASSERT_EQ(cc_status.GetPayload("key2"), another_cc_status.GetPayload("key2"));
      TSL_DeleteStatus(s);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

                    return rx - lx;
                } else {
                    return lx - rx;
                }
            };
    
            Map<String, Lifecycle> lifecyclesMap = lookupLifecycles();
    
            // ensure canonical order of standard lifecycles
            return lifecyclesMap.values().stream()
                    .peek(l -> Objects.requireNonNull(l.getId(), "A lifecycle must have an id."))
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. test/makechan.go

    // errorcheck
    
    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Ensure that typed non-integer, negative and too large
    // values are not accepted as size argument in make for
    // channels.
    
    package main
    
    type T chan byte
    
    var sink T
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. cmd/kube-apiserver/app/options/globalflags.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"github.com/spf13/pflag"
    
    	"k8s.io/component-base/cli/globalflag"
    
    	// ensure libs have a chance to globally register their flags
    	_ "k8s.io/apiserver/pkg/admission"
    )
    
    // AddCustomGlobalFlags explicitly registers flags that internal packages register
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 07:44:58 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/service/scopes/StatefulListener.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Attached to a listener interface to indicate that its events are stateful.
     *
     * <p>The listener infrastructure will ensure that a listener of this type will either receive all events, or no events.
     * Currently, this is done by disallowing the registration of a listener of this type once any events have been fired.
     *
     * @see Scope
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/ApplicationServiceRegistration.kt

     *
     * The Kotlin core environment shares the application between multiple tests running in parallel. We need to ensure that application
     * services are only registered once, and especially that no races happen. Thread safety is ensured with a lock, while registrations are
     * kept unique by remembering which service registrars have been applied already.
     *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu May 16 11:53:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/renewal/readwriter.go

    		return nil, errors.Errorf("invalid kubeConfig file %s: missing context %s", rw.kubeConfigFilePath, kubeConfig.CurrentContext)
    	}
    
    	// get cluster info for current context and ensure a server certificate is embedded in it
    	clusterName := kubeConfig.Contexts[kubeConfig.CurrentContext].Cluster
    	if _, ok := kubeConfig.Clusters[clusterName]; !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 01 03:09:53 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/service/scopes/ListenerService.java

    /**
     * Attached to a service implementation to indicate that the instance should be registered as a listener.
     *
     * <p>Generally, it is better to use {@link StatefulListener}, which is lazy and applies some validation to ensure no events are missed.
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.TYPE)
    @Inherited
    public @interface ListenerService {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top