Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 6,099 for runN (1.23 sec)

  1. test/fixedbugs/issue45706.go

    package p
    
    var i int
    var arr []*int
    var f func() int
    
    func g() {
    	for i, *(arr[f()]) = range []int{} {
    	}
    }
    
    func h() {
    	var x int
    	var f func() int
    	var arr []int
    	var arr2 [][0]rune
    	for arr[x], arr2[arr[f()]][x] = range "" {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 23 20:57:54 UTC 2021
    - 405 bytes
    - Viewed (0)
  2. test/fixedbugs/issue15039.go

    // run
    
    // Copyright 2016 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.
    
    package main
    
    func main() {
    	const fffd = "\uFFFD"
    
    	// runtime.intstring used to convert int64 to rune without checking
    	// for truncation.
    	u := uint64(0x10001f4a9)
    	big := string(u)
    	if big != fffd {
    		panic("big != bad")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 10:28:23 UTC 2016
    - 545 bytes
    - Viewed (0)
  3. pilot/pkg/security/authz/builder/testdata/http/dry-run-allow-and-deny-out2.yaml

    Yangmin Zhu <******@****.***> 1617651067 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 05 19:31:07 UTC 2021
    - 507 bytes
    - Viewed (0)
  4. pkg/proxy/util/linebuffer_test.go

    			}
    		})
    	}
    }
    
    // obtained from https://stackoverflow.com/a/22892986
    var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
    
    func randSeq() string {
    	b := make([]rune, 30)
    	for i := range b {
    		b[i] = letters[rand.Intn(len(letters))]
    	}
    	return string(b)
    }
    
    func TestWriteCountLines(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 12:38:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go

    	"ReadFrom":      {[]string{"=io.Reader"}, []string{"int64", "error"}},              // io.ReaderFrom
    	"ReadRune":      {[]string{}, []string{"rune", "int", "error"}},                    // io.RuneReader
    	"Scan":          {[]string{"=fmt.ScanState", "rune"}, []string{"error"}},           // fmt.Scanner
    	"Seek":          {[]string{"=int64", "int"}, []string{"int64", "error"}},           // io.Seeker
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. test/fixedbugs/issue7316.go

    package main
    
    import "fmt"
    
    const tpl = `
    func init() {
    	var i %s
    	j := %s(i)
    	_ = %s(j)
    }
    `
    
    func main() {
    	fmt.Println("package main")
    	ntypes := []string{
    		"byte", "rune", "uintptr",
    		"float32", "float64",
    		"int", "int8", "int16", "int32", "int64",
    		"uint", "uint8", "uint16", "uint32", "uint64",
    	}
    	for i, from := range ntypes {
    		for _, to := range ntypes[i:] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 777 bytes
    - Viewed (0)
  7. tools/go-stress-test

    # * -stress.runs: exit successfully after this many runs. Default 1000.
    # * -stress.time: exit successfully after this much time has passed. Default 10s.
    
    set -u
    
    red='\e[0;31m'
    green='\e[0;32m'
    yellow='\e[0;33m'
    clr='\e[0m'
    
    binary="${1}"
    RUN="."
    COUNT=1
    RUNS=1000
    TIME=10s
    while [[ "$#" -gt 0 ]]; do
        case $1 in
            -test.v=true) VERBOSE=true ;;
            -test.run=*) RUN="${1#-test.run=}" ;;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 04 23:04:41 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. pkg/util/async/bounded_frequency_runner.go

    //
    // Examples:
    //
    // NewBoundedFrequencyRunner("name", fn, time.Second, 5*time.Second, 1)
    // - fn will have at least 1 second between runs
    // - fn will have no more than 5 seconds between runs
    //
    // NewBoundedFrequencyRunner("name", fn, 3*time.Second, 10*time.Second, 3)
    // - fn will have at least 3 seconds between runs, with up to 3 burst runs
    // - fn will have no more than 10 seconds between runs
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  9. src/math/big/intconv.go

    // a leading "0x" or "0X" for "%#x" and "%#X" respectively,
    // specification of minimum digits precision, output field
    // width, space or zero padding, and '-' for left or right
    // justification.
    func (x *Int) Format(s fmt.State, ch rune) {
    	// determine base
    	var base int
    	switch ch {
    	case 'b':
    		base = 2
    	case 'o', 'O':
    		base = 8
    	case 'd', 's', 'v':
    		base = 10
    	case 'x', 'X':
    		base = 16
    	default:
    		// unknown format
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationQueueTest.groovy

        }
    
        def "executes all #runs operations in #threads threads"() {
            given:
            setupQueue(threads)
            def success = Mock(TestBuildOperation)
    
            when:
            runs.times { operationQueue.add(success) }
    
            and:
            operationQueue.waitForCompletion()
    
            then:
            runs * success.run(_)
    
            where:
            runs | threads
            0    | 1
            0    | 4
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top