Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 3,541 for casePC (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			if keyLHS == keyRHS {
    				continue
    			}
    			cases = append(cases, testcase{
    				name:        fmt.Sprintf("compare_%s_%s", keyLHS, keyRHS),
    				expr:        fmt.Sprintf(`format.%s() == format.%s()`, keyLHS, keyRHS),
    				expectValue: types.False,
    			})
    		}
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_op_enums.td

    // A string attribute whose value are one of the values in `cases`.
    // Referred TF_AnyStrAttrOf in tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td
    class TFL_AnyStrAttrOf<list<string> cases> : StringBasedAttr<
      CPred<!foldl(
          "$_self.cast<StringAttr>().getValue() == \"" # !head(cases) # "\"",
          !foreach(case, !tail(cases),
                   "$_self.cast<StringAttr>().getValue() == \"" # case # "\""),
          prev, cur, prev # " || " # cur)>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 20 00:05:24 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    	// These cases are all the same, but the x.Body only works
    	// when the specific type of x is known, so the cases cannot
    	// be merged.
    	case *ast.ForStmt:
    		outer := d.breakTarget
    		d.breakTarget = x
    		d.findLabels(x.Body)
    		d.breakTarget = outer
    
    	case *ast.RangeStmt:
    		outer := d.breakTarget
    		d.breakTarget = x
    		d.findLabels(x.Body)
    		d.breakTarget = outer
    
    	case *ast.SelectStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/math/asinh.go

    		Large    = 1 << 28                    // 2**28
    	)
    	// special cases
    	if IsNaN(x) || IsInf(x, 0) {
    		return x
    	}
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    	var temp float64
    	switch {
    	case x > Large:
    		temp = Log(x) + Ln2 // |x| > 2**28
    	case x > 2:
    		temp = Log(2*x + 1/(Sqrt(x*x+1)+x)) // 2**28 > |x| > 2.0
    	case x < NearZero:
    		temp = x // |x| < 2**-28
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/gen/arithConstGen.go

    	var ans uint64
    	switch op {
    	case "+":
    		ans = i + j
    	case "-":
    		ans = i - j
    	case "*":
    		ans = i * j
    	case "/":
    		if j != 0 {
    			ans = i / j
    		}
    	case "%":
    		if j != 0 {
    			ans = i % j
    		}
    	case "<<":
    		ans = i << j
    	case ">>":
    		ans = i >> j
    	case "&":
    		ans = i & j
    	case "|":
    		ans = i | j
    	case "^":
    		ans = i ^ j
    	}
    	switch t {
    	case "uint32":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    //===----------------------------------------------------------------------===//
    // CaseOp
    //===----------------------------------------------------------------------===//
    
    class FoldConstantCaseOp : public OpRewritePattern<TF::CaseOp> {
     public:
      explicit FoldConstantCaseOp(MLIRContext* context)
          : OpRewritePattern<TF::CaseOp>(context) {}
      LogicalResult matchAndRewrite(TF::CaseOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  7. src/cmp/cmp_test.go

    }
    
    func TestLess(t *testing.T) {
    	for _, test := range tests {
    		var b bool
    		switch test.x.(type) {
    		case int:
    			b = cmp.Less(test.x.(int), test.y.(int))
    		case string:
    			b = cmp.Less(test.x.(string), test.y.(string))
    		case float64:
    			b = cmp.Less(test.x.(float64), test.y.(float64))
    		case uintptr:
    			b = cmp.Less(test.x.(uintptr), test.y.(uintptr))
    		}
    		if b != (test.compare < 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. cmd/erasure-sets_test.go

    	"github.com/google/uuid"
    )
    
    var testUUID = uuid.MustParse("f5c58c61-7175-4018-ab5e-a94fe9c2de4e")
    
    func BenchmarkCrcHash(b *testing.B) {
    	cases := []struct {
    		key int
    	}{
    		{16},
    		{64},
    		{128},
    		{256},
    		{512},
    		{1024},
    	}
    	for _, testCase := range cases {
    		testCase := testCase
    		key := randString(testCase.key)
    		b.Run("", func(b *testing.B) {
    			b.SetBytes(1024)
    			b.ReportAllocs()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. test/switch.go

    	switch x := 5; true {
    	case i5 < x:
    		assert(false, "<")
    	case i5 == x:
    		assert(true, "!")
    	case i5 > x:
    		assert(false, ">")
    	}
    
    	switch i5 {
    	case 0:
    		assert(false, "0")
    	case 1:
    		assert(false, "1")
    	case 2:
    		assert(false, "2")
    	case 3:
    		assert(false, "3")
    	case 4:
    		assert(false, "4")
    	case 5:
    		assert(true, "5")
    	case 6:
    		assert(false, "6")
    	case 7:
    		assert(false, "7")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 19 23:30:49 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kubeletconfig/util/files/files_test.go

    			}
    		}
    
    		// short-circuit test case validation errors
    		if len(errs) > 0 {
    			return errs
    		}
    
    		// call ReplaceDir for each desired dir
    		for path, files := range dirs {
    			if err := ReplaceDir(fs, path, files); err != nil {
    				errs = append(errs, err)
    			}
    		}
    		return errs
    	}
    	cases := []test{
    		{
    			fn:      fn,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 07 11:36:13 UTC 2022
    - 11.7K bytes
    - Viewed (0)
Back to top