Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for things (0.16 sec)

  1. src/cmd/cgo/internal/test/callback.go

    		}
    		fname := f.Name()
    		// Remove the prepended pathname from automatically
    		// generated cgo function names.
    		if strings.HasPrefix(fname, "_") {
    			fname = path.Base(f.Name()[1:])
    		}
    		// In module mode, this package has a fully-qualified import path.
    		// Remove it if present.
    		fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
    
    		namei := ""
    		if i < len(name) {
    			namei = name[i]
    		}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	var w0 writeCountingDiscard
    	b0 := NewWriterSize(&w0, 1234)
    	b0.WriteString(strings.Repeat("x", 1000))
    	if w0 != 0 {
    		t.Fatalf("write 1000 'x's: got %d writes, want 0", w0)
    	}
    	b0.WriteString(strings.Repeat("x", 200))
    	if w0 != 0 {
    		t.Fatalf("write 1200 'x's: got %d writes, want 0", w0)
    	}
    	io.Copy(b0, onlyReader{strings.NewReader(strings.Repeat("x", 30))})
    	if w0 != 0 {
    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)
  3. src/cmd/api/api_test.go

    			}
    			f.Close()
    		}
    
    		bs, err := os.ReadFile(goldenFile)
    		if err != nil {
    			t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err)
    		}
    		wanted := strings.Split(string(bs), "\n")
    		sort.Strings(wanted)
    		for _, feature := range wanted {
    			if feature == "" {
    				continue
    			}
    			_, ok := w.features[feature]
    			if !ok {
    				t.Errorf("package %s: missing feature %q", fi.Name(), feature)
    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)
  4. src/cmd/asm/internal/asm/pseudo_test.go

    // Copyright 2015 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 asm
    
    import (
    	"strings"
    	"testing"
    
    	"cmd/asm/internal/lex"
    )
    
    func tokenize(s string) [][]lex.Token {
    	res := [][]lex.Token{}
    	if len(s) == 0 {
    		return res
    	}
    	for _, o := range strings.Split(s, ",") {
    		res = append(res, lex.Tokenize(o))
    	}
    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)
  5. src/cmd/cgo/ast.go

    	n, ok := x.(*ast.FuncDecl)
    	if !ok {
    		return
    	}
    
    	if n.Doc == nil {
    		return
    	}
    	for _, c := range n.Doc.List {
    		if !strings.HasPrefix(c.Text, "//export ") {
    			continue
    		}
    
    		name := strings.TrimSpace(c.Text[9:])
    		if name == "" {
    			error_(c.Pos(), "export missing name")
    		}
    
    		if name != n.Name.Name {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/swig/swig_test.go

    // Copyright 2023 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 swig
    
    import (
    	"cmd/internal/quoted"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"strconv"
    	"strings"
    	"sync"
    	"testing"
    )
    
    func TestStdio(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    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)
  7. src/archive/tar/strconv_test.go

    		if got != v.want {
    			t.Errorf("formatPAXTime(%ds, %dns): got %q, want %q",
    				v.sec, v.nsec, got, v.want)
    		}
    	}
    }
    
    func TestParsePAXRecord(t *testing.T) {
    	medName := strings.Repeat("CD", 50)
    	longName := strings.Repeat("AB", 100)
    
    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/01-pkgsite.yml

    description: Issues or feature requests for the documentation site
    title: "x/pkgsite: issue title"
    labels: ["pkgsite"]
    body:
      - type: markdown
        attributes:
          value: "Please answer these questions before submitting your issue. Thanks!"
      - type: input
        id: url
        attributes:
          label: "What is the URL of the page with the issue?"
        validations:
          required: true
      - type: input
        id: user-agent
        attributes:
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/operand_test.go

    				name, _, ok := parser.funcAddress()
    
    				isFuncSym := strings.HasSuffix(test.input, "(SB)") &&
    					// Ignore static symbols.
    					!strings.Contains(test.input, "<>")
    
    				wantName := ""
    				if isFuncSym {
    					// Strip $|* and (SB) and +Int.
    					wantName = test.output[:len(test.output)-4]
    					if strings.HasPrefix(wantName, "$") || strings.HasPrefix(wantName, "*") {
    						wantName = wantName[1:]
    					}
    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)
  10. api/go1.5.txt

    pkg runtime, func StopTrace()
    pkg runtime, type MemStats struct, GCCPUFraction float64
    pkg runtime/trace, func Start(io.Writer) error
    pkg runtime/trace, func Stop()
    pkg strings, func Compare(string, string) int
    pkg strings, func LastIndexByte(string, uint8) int
    pkg strings, method (*Reader) Size() int64
    pkg syscall (darwin-386), type SysProcAttr struct, Ctty int
    pkg syscall (darwin-386), type SysProcAttr struct, Foreground bool
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
Back to top