Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 6,074 for case1 (0.04 sec)

  1. src/math/modf.go

    //
    // Special cases are:
    //
    //	Modf(±Inf) = ±Inf, NaN
    //	Modf(NaN) = NaN, NaN
    func Modf(f float64) (int float64, frac float64) {
    	if haveArchModf {
    		return archModf(f)
    	}
    	return modf(f)
    }
    
    func modf(f float64) (int float64, frac float64) {
    	if f < 1 {
    		switch {
    		case f < 0:
    			int, frac = Modf(-f)
    			return -int, -frac
    		case f == 0:
    			return f, f // Return -0, -0 when f == -0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 913 bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            that it's for a use case that actually comes up in the real world. We want to hear the
            real-world use case so the community can discuss and debate whether this feature is actually
            the *best* way to address the real use case, or whether or not a different approach might be
            more appropriate.
    
    
            It's okay if you can't provide complete context on a use case. We understand if you are not
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/math.go

    func pow10Int64(b int64) int64 {
    	switch b {
    	case 0:
    		return 1
    	case 1:
    		return 10
    	case 2:
    		return 100
    	case 3:
    		return 1000
    	case 4:
    		return 10000
    	case 5:
    		return 100000
    	case 6:
    		return 1000000
    	case 7:
    		return 10000000
    	case 8:
    		return 100000000
    	case 9:
    		return 1000000000
    	case 10:
    		return 10000000000
    	case 11:
    		return 100000000000
    	case 12:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 23 13:07:14 UTC 2020
    - 7.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go

    	}
    	config := configure("fuzzer")
    	config.skipIfCSanitizerBroken(t)
    
    	cases := []struct {
    		goSrc         string
    		cSrc          string
    		expectedError string
    	}{
    		{goSrc: "libfuzzer1.go", expectedError: "panic: found it"},
    		{goSrc: "libfuzzer2.go", cSrc: "libfuzzer2.c", expectedError: "panic: found it"},
    	}
    	for _, tc := range cases {
    		tc := tc
    		name := strings.TrimSuffix(tc.goSrc, ".go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 00:12:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. internal/mountinfo/mountinfo_linux_test.go

    		}
    	}
    	// Success case, where path doesn't have any mounts.
    	{
    		absPaths := []string{"/path/to/x"}
    		if err = checkCrossDevice(absPaths, mountsPath); err != nil {
    			t.Fatalf("Expected success, failed instead (%s)", err)
    		}
    	}
    }
    
    // Tests cross device mount verification function, for both failure
    // and success cases.
    func TestCrossDeviceMount(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. maven-core/src/site/apt/offline-mode.apt

      * The file wagon, provided the referenced location is on a local
        filesystem.
    
        It is not possible to determine whether a file-based location will
        be available except on a case-by-case basis (or a root-url by
        root-url basis). We may want to move the offline sensitivity entirely to
        Maven-Artifact, below, so we can be smarter about testing filesystem-based
        repositories, etc.
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 18 00:24:53 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status.go

    func ErrorToAPIStatus(err error) *metav1.Status {
    	switch t := err.(type) {
    	case statusError:
    		status := t.Status()
    		if len(status.Status) == 0 {
    			status.Status = metav1.StatusFailure
    		}
    		switch status.Status {
    		case metav1.StatusSuccess:
    			if status.Code == 0 {
    				status.Code = http.StatusOK
    			}
    		case metav1.StatusFailure:
    			if status.Code == 0 {
    				status.Code = http.StatusInternalServerError
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 26 12:39:56 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  8. istioctl/pkg/injector/injector-list_test.go

    					},
    					Annotations: map[string]string{
    						annotation.SidecarStatus.Name: `{"revision":"test-anno"}`,
    					},
    				},
    			},
    			expectedRevision: "test-anno",
    		},
    	}
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, c.name), func(t *testing.T) {
    			assert.Equal(t, c.expectedRevision, extractRevisionFromPod(c.pod))
    		})
    	}
    }
    
    func Test_getNamespaces(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 04:33:57 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. src/reflect/swapper.go

    		}
    	} else {
    		switch size {
    		case 8:
    			is := *(*[]int64)(v.ptr)
    			return func(i, j int) { is[i], is[j] = is[j], is[i] }
    		case 4:
    			is := *(*[]int32)(v.ptr)
    			return func(i, j int) { is[i], is[j] = is[j], is[i] }
    		case 2:
    			is := *(*[]int16)(v.ptr)
    			return func(i, j int) { is[i], is[j] = is[j], is[i] }
    		case 1:
    			is := *(*[]int8)(v.ptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    		return 1 << nCompositeLit
    	case *ast.DeclStmt:
    		return 1 << nDeclStmt
    	case *ast.DeferStmt:
    		return 1 << nDeferStmt
    	case *ast.Ellipsis:
    		return 1 << nEllipsis
    	case *ast.EmptyStmt:
    		return 1 << nEmptyStmt
    	case *ast.ExprStmt:
    		return 1 << nExprStmt
    	case *ast.Field:
    		return 1 << nField
    	case *ast.FieldList:
    		return 1 << nFieldList
    	case *ast.File:
    		return 1 << nFile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top