Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for true (0.19 sec)

  1. src/archive/tar/strconv_test.go

    		width int
    		ok    bool
    	}{
    		{+1, 8, true},
    		{0, 8, true},
    		{-1, 8, true},
    		{1 << 56, 8, false},
    		{(1 << 56) - 1, 8, true},
    		{-1 << 56, 8, true},
    		{(-1 << 56) - 1, 8, false},
    		{121654, 8, true},
    		{-9849849, 8, true},
    		{math.MaxInt64, 9, true},
    		{0, 9, true},
    		{math.MinInt64, 9, true},
    		{math.MaxInt64, 12, true},
    		{0, 12, true},
    		{math.MinInt64, 12, true},
    	}
    
    	for _, v := range vectors {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/arch/ppc64.go

    		ppc64.ASUBZE:
    		return true
    	}
    	return false
    }
    
    func ppc64RegisterNumber(name string, n int16) (int16, bool) {
    	switch name {
    	case "CR":
    		if 0 <= n && n <= 7 {
    			return ppc64.REG_CR0 + n, true
    		}
    	case "A":
    		if 0 <= n && n <= 8 {
    			return ppc64.REG_A0 + n, true
    		}
    	case "VS":
    		if 0 <= n && n <= 63 {
    			return ppc64.REG_VS0 + n, true
    		}
    	case "V":
    		if 0 <= n && n <= 31 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Sep 07 20:53:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/arch/s390x.go

    		"CLGIJ",
    		"CALL",
    		"JMP":
    		return true
    	}
    	return false
    }
    
    func s390xRegisterNumber(name string, n int16) (int16, bool) {
    	switch name {
    	case "AR":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_AR0 + n, true
    		}
    	case "F":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_F0 + n, true
    		}
    	case "R":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_R0 + n, true
    		}
    	case "V":
    		if 0 <= n && n <= 31 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 17 14:55:25 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/api/api_test.go

    		}
    	}
    }
    
    func TestSkipInternal(t *testing.T) {
    	tests := []struct {
    		pkg  string
    		want bool
    	}{
    		{"net/http", true},
    		{"net/http/internal-foo", true},
    		{"net/http/internal", false},
    		{"net/http/internal/bar", false},
    		{"internal/foo", false},
    		{"internal", false},
    	}
    	for _, tt := range tests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/swig/swig_test.go

    	run(t, "testdata/callback", false, "Call")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Call") })
    }
    
    func TestCallback(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Callback")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Callback") })
    }
    
    func run(t *testing.T, dir string, lto bool, args ...string) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue18146.go

    	// Tediously, RLIMIT_NPROC was left out of the syscall package,
    	// probably because it is not in POSIX.1, so we define it here.
    	// It is not defined on Solaris.
    	var nproc int
    	setNproc := true
    	switch runtime.GOOS {
    	default:
    		setNproc = false
    	case "aix":
    		nproc = 9
    	case "linux":
    		nproc = 6
    	case "darwin", "dragonfly", "freebsd", "netbsd", "openbsd":
    		nproc = 7
    	}
    	if setNproc {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/pseudo_test.go

    	}
    
    	testcats := []struct {
    		allowABI bool
    		tests    []errtest
    	}{
    		{
    			allowABI: false,
    			tests:    nonRuntimeTests,
    		},
    		{
    			allowABI: true,
    			tests:    runtimeTests,
    		},
    	}
    
    	// Note these errors should be independent of the architecture.
    	// Just run the test with amd64.
    	parser := newParser("amd64")
    	var buf strings.Builder
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/archive/zip/reader_test.go

    				NonUTF8:  true,
    				Modified: time.Date(2017, 11, 6, 13, 9, 27, 0, timeZone(-8*time.Hour)),
    			},
    		},
    	},
    	{
    		Name: "utf8-osx.zip",
    		File: []ZipTestFile{
    			{
    				Name:    "世界",
    				Content: []byte{},
    				Mode:    0644,
    				// Name is valid UTF-8, but format does not have UTF-8 set.
    				NonUTF8:  true,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    		{[]byte("012345678901234"), true, nil},
    		{nil, false, nil},
    		{[]byte("012345678901234"), true, nil},
    		{nil, false, nil},
    		{nil, false, io.EOF},
    	}},
    	{"0123456789012345\r012345678901234\r", []readLineResult{
    		{[]byte("0123456789012345"), true, nil},
    		{[]byte("\r012345678901234"), true, nil},
    		{[]byte("\r"), false, nil},
    		{nil, false, io.EOF},
    	}},
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/operand_test.go

    }
    
    // tryParse executes parse func in panicOnError=true context.
    // parse is expected to call any parsing methods that may panic.
    // Returns error gathered from recover; nil if no parse errors occurred.
    //
    // For unexpected panics, calls t.Fatal.
    func tryParse(t *testing.T, parse func()) (err error) {
    	panicOnError = true
    	defer func() {
    		panicOnError = false
    
    		e := recover()
    		var ok bool
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
Back to top