Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 188 for valid (0.33 sec)

  1. src/cmd/vendor/golang.org/x/text/cases/tables10.0.0.go

    		}
    		return t.lookupValue(uint32(i), c3), 4
    	}
    	// Illegal rune
    	return 0, 1
    }
    
    // lookupUnsafe returns the trie value for the first UTF-8 encoding in s.
    // s must start with a full and valid UTF-8 encoded rune.
    func (t *caseTrie) lookupUnsafe(s []byte) uint16 {
    	c0 := s[0]
    	if c0 < 0x80 { // is ASCII
    		return caseValues[c0]
    	}
    	i := caseIndex[c0]
    	if c0 < 0xE0 { // 2-byte UTF-8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    			}
    		}
    	}
    }
    
    func BenchmarkToValidUTF8(b *testing.B) {
    	tests := []struct {
    		name  string
    		input string
    	}{
    		{"Valid", "typical"},
    		{"InvalidASCII", "foo\xffbar"},
    		{"InvalidNonASCII", "日本語\xff日本語"},
    	}
    	replacement := "\uFFFD"
    	b.ResetTimer()
    	for _, test := range tests {
    		b.Run(test.name, func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/strategy_test.go

    					},
    				},
    				Status: api.PodStatus{},
    			},
    			opts: &api.PodLogOptions{
    				Container: "unknown",
    			},
    			expectedErr:       errors.NewBadRequest("container unknown is not valid for pod test"),
    			expectedTransport: nil,
    		},
    		{
    			name: "good with two containers",
    			in: &api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: fakePodName},
    				Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  4. src/runtime/mprof.go

    	// This should be at least as large as the largest skip value
    	// used for profiling; otherwise stacks may be truncated inconsistently
    	maxSkip = 5
    
    	// maxProfStackDepth is the highest valid value for debug.profstackdepth.
    	// It's used for the bucket.stk func.
    	// TODO(fg): can we get rid of this?
    	maxProfStackDepth = 1024
    )
    
    type bucketType int
    
    // A bucket holds per-call-stack profiling information.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      TF_ASSERT_OK(MarkForCompilationPassTestHelper::MarkForCompilation(&graph));
      auto clusters = GetClusters(*graph);
    
      EXPECT_TRUE(clusters.empty());
    }
    
    TEST(XlaCompilationTest, ConstOp) {
      // valid data type
      {
        std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
        Scope root = Scope::NewRootScope().ExitOnError();
        auto c = ops::Const(root.WithOpName("const"), 0.5f);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  6. pkg/kubelet/nodestatus/setters_test.go

    				{Type: v1.NodeExternalIP, Address: "55.55.55.55"},
    				{Type: v1.NodeHostName, Address: testKubeletHostname},
    			},
    			shouldError: false,
    		},
    		{
    			name:   "An InternalIP that isn't valid: should error",
    			nodeIP: netutils.ParseIPSloppy("10.2.2.2"),
    			nodeAddresses: []v1.NodeAddress{
    				{Type: v1.NodeInternalIP, Address: "10.1.1.1"},
    				{Type: v1.NodeExternalIP, Address: "55.55.55.55"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/cases/tables11.0.0.go

    		}
    		return t.lookupValue(uint32(i), c3), 4
    	}
    	// Illegal rune
    	return 0, 1
    }
    
    // lookupUnsafe returns the trie value for the first UTF-8 encoding in s.
    // s must start with a full and valid UTF-8 encoded rune.
    func (t *caseTrie) lookupUnsafe(s []byte) uint16 {
    	c0 := s[0]
    	if c0 < 0x80 { // is ASCII
    		return caseValues[c0]
    	}
    	i := caseIndex[c0]
    	if c0 < 0xE0 { // 2-byte UTF-8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 97.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    // changed to 1 if less than zero. Zero means no TTL, not expire immediately.
    func (e *Store) calculateTTL(obj runtime.Object, defaultTTL int64, update bool) (ttl uint64, err error) {
    	// TODO: validate this is assertion is still valid.
    
    	// etcd may return a negative TTL for a node if the expiration has not
    	// occurred due to server lag - we will ensure that the value is at least
    	// set.
    	if defaultTTL < 0 {
    		defaultTTL = 1
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    			for i := 0; i < b.N; i++ {
    				TrimSpace(test.input)
    			}
    		})
    	}
    }
    
    func BenchmarkToValidUTF8(b *testing.B) {
    	tests := []struct {
    		name  string
    		input []byte
    	}{
    		{"Valid", []byte("typical")},
    		{"InvalidASCII", []byte("foo\xffbar")},
    		{"InvalidNonASCII", []byte("日本語\xff日本語")},
    	}
    	replacement := []byte("\uFFFD")
    	b.ResetTimer()
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/jvm/java_testing.adoc

    This means, all dependencies, including Jars with module information, are put on the classpath.
    The advantage is that all internal classes of your (or other) modules are then accessible directly in tests.
    This may be a totally valid setup for unit testing, where we do not care about the larger module structure, but only about testing single functions.
    
    [NOTE]
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 16:24:12 UTC 2024
    - 53.1K bytes
    - Viewed (0)
Back to top