Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 6,074 for case1 (0.06 sec)

  1. cmd/copy-part-range.go

    		return nil, errInvalidRange
    	}
    	return hrange, nil
    }
    
    // checkCopyPartRangeWithSize adds more check to the range string in case of
    // copy object part. This API requires having specific start and end  range values
    // e.g. 'bytes=3-10'. Other use cases will be rejected.
    func checkCopyPartRangeWithSize(rs *HTTPRangeSpec, resourceSize int64) (err error) {
    	if rs == nil {
    		return nil
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 18 03:27:04 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/nodes_test.go

    }
    
    var cases = []test{
    	{"CaseClause", `@case x:`},
    	{"CaseClause", `@case x, y, z:`},
    	{"CaseClause", `@case x == 1, y == 2:`},
    	{"CaseClause", `@default:`},
    }
    
    var comms = []test{
    	{"CommClause", `@case <-ch:`},
    	{"CommClause", `@case x <- ch:`},
    	{"CommClause", `@case x = <-ch:`},
    	{"CommClause", `@case x := <-ch:`},
    	{"CommClause", `@case x, ok = <-ch: f(1, 2, 3)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/constdecl.go

    		_, _
    		_, _, _ /* ERROR "missing init expr for _" */
    		_, _
    	)
    }
    
    // Test case for constant with invalid initialization.
    // Caused panic because the constant value was not set up (gri - 7/8/2014).
    func _() {
    	const (
    	    x string = missing /* ERROR "undefined" */
    	    y = x + ""
    	)
    }
    
    // Test case for constants depending on function literals (see also #22992).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. test/fixedbugs/issue22881.go

    		}
    	}
    
    	// Append slice.
    	for i, f := range []func(map[int][]int){
    		fa0, fa1, fa2, fa3,
    	} {
    		m := map[int][]int{}
    		func() { // wrapper to scope the defer.
    			defer func() {
    				recover()
    			}()
    			f(m) // Will panic. Shouldn't modify m.
    			fmt.Printf("RHS didn't panic, case fa%d\n", i)
    		}()
    		if len(m) != 0 {
    			fmt.Printf("map insert happened, case fa%d\n", i)
    		}
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 01:47:07 UTC 2018
    - 2K bytes
    - Viewed (0)
  5. src/math/j0.go

    		S03 = 5.13546550207318111446e-07  // 0x3EA13B54CE84D5A9
    		S04 = 1.16614003333790000205e-09  // 0x3E1408BCF4745D8F
    	)
    	// special cases
    	switch {
    	case IsNaN(x):
    		return x
    	case IsInf(x, 0):
    		return 0
    	case x == 0:
    		return 1
    	}
    
    	x = Abs(x)
    	if x >= 2 {
    		s, c := Sincos(x)
    		ss := s - c
    		cc := s + c
    
    		// make sure x+x does not overflow
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 13.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/response-change-status-code.md

    # Response - Change Status Code
    
    You probably read before that you can set a default [Response Status Code](../tutorial/response-status-code.md){.internal-link target=_blank}.
    
    But in some cases you need to return a different status code than the default.
    
    ## Use case
    
    For example, imagine that you want to return an HTTP status code of "OK" `200` by default.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 16:31:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cover_cgo_extra_test.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test coverage on cgo code. This test case has an external
    # test that tests the code and an in-package test file with
    # no test cases.
    
    go test -short -cover cgocover3
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover3
    
    go 1.16
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 584 bytes
    - Viewed (0)
  8. src/runtime/tracetime.go

    // platforms where osHasLowResClock is true, because the system clock
    // isn't granular enough to get useful information out of a trace in
    // many cases.
    //
    // This makes absolute values of timestamp diffs smaller, and so they are
    // encoded in fewer bytes.
    //
    // The target resolution in all cases is 64 nanoseconds.
    // This is based on the fact that fundamentally the execution tracer won't emit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/math/erf.go

    //
    // Special cases are:
    //
    //	Erfc(+Inf) = 0
    //	Erfc(-Inf) = 2
    //	Erfc(NaN) = NaN
    func Erfc(x float64) float64 {
    	if haveArchErfc {
    		return archErfc(x)
    	}
    	return erfc(x)
    }
    
    func erfc(x float64) float64 {
    	const Tiny = 1.0 / (1 << 56) // 2**-56
    	// special cases
    	switch {
    	case IsNaN(x):
    		return NaN()
    	case IsInf(x, 1):
    		return 0
    	case IsInf(x, -1):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  10. cmd/auth-handler_test.go

    	testCases := []struct {
    		inputQueryKey   string
    		inputQueryValue string
    		expectedResult  bool
    	}{
    		// Test case - 1.
    		// Test case with query key "AWSAccessKeyId" set.
    		{"", "", false},
    		// Test case - 2.
    		{"AWSAccessKeyId", "", true},
    		// Test case - 3.
    		{"X-Amz-Content-Sha256", "", false},
    	}
    
    	for i, testCase := range testCases {
    		// creating an input HTTP request.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top