Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for doTest (0.41 sec)

  1. src/bufio/bufio_test.go

    type readMaker struct {
    	name string
    	fn   func(io.Reader) io.Reader
    }
    
    var readMakers = []readMaker{
    	{"full", func(r io.Reader) io.Reader { return r }},
    	{"byte", iotest.OneByteReader},
    	{"half", iotest.HalfReader},
    	{"data+err", iotest.DataErrReader},
    	{"timeout", iotest.TimeoutReader},
    }
    
    // Call ReadString (which ends up calling everything else)
    // to accumulate the text of a file.
    func readLines(b *Reader) string {
    	s := ""
    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)
  2. misc/wasm/wasm_exec.js

    				return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
    			}
    
    			const timeOrigin = Date.now() - performance.now();
    			this.importObject = {
    				_gotest: {
    					add: (a, b) => a + b,
    				},
    				gojs: {
    					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  3. src/bytes/bytes.go

    }
    
    // TrimPrefix returns s without the provided leading prefix string.
    // If s doesn't start with prefix, s is returned unchanged.
    func TrimPrefix(s, prefix []byte) []byte {
    	if HasPrefix(s, prefix) {
    		return s[len(prefix):]
    	}
    	return s
    }
    
    // TrimSuffix returns s without the provided trailing suffix string.
    // If s doesn't end with suffix, s is returned unchanged.
    func TrimSuffix(s, suffix []byte) []byte {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callback_windows.go

    	for i := 0; i < n; i++ {
    		f := runtime.FuncForPC(pc[i] - 1)
    		if f == nil {
    			continue
    		}
    		fname := f.Name()
    		switch fname {
    		case "goCallback":
    			// TODO(qmuntal): investigate why this function doesn't appear
    			// when using the external linker.
    			continue
    		}
    		// In module mode, this package has a fully-qualified import path.
    		// Remove it if present.
    		fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  5. src/bytes/reader_test.go

    			t.Errorf("%d. got error = %v; want %v", i, err, tt.wanterr)
    		}
    	}
    }
    
    func TestReaderAtConcurrent(t *testing.T) {
    	// Test for the race detector, to verify ReadAt doesn't mutate
    	// any state.
    	r := NewReader([]byte("0123456789"))
    	var wg sync.WaitGroup
    	for i := 0; i < 5; i++ {
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    			var buf [1]byte
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    				p.arch.Family == sys.PPC64) {
    				// Support (R1)(R2) (no scaling) and (R1)(R2*1).
    				p.errorf("%s doesn't support scaled register format", p.arch.Name)
    			} else {
    				a.Scale = int16(scale)
    			}
    		}
    		p.get(')')
    	} else if scale != 0 {
    		if p.arch.Family == sys.ARM64 {
    			p.errorf("arm64 doesn't support scaled register format")
    		}
    		// First (R) was missing, all we have is (R*scale).
    		a.Reg = 0
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  7. doc/go_spec.html

    [S ~[]E, E any]        []int, int        []int satisfies ~[]int, int satisfies any
    [P io.Writer]          string            illegal: string doesn't satisfy io.Writer
    [P comparable]         any               any satisfies (but does not implement) comparable
    </pre>
    
    <p>
    When using a generic function, type arguments may be provided explicitly,
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/cgo_test.go

    //go:build cgo
    
    package cgotest
    
    import "testing"
    
    // The actual test functions are in non-_test.go files
    // so that they can use cgo (import "C").
    // These wrappers are here for gotest to find.
    
    func Test1328(t *testing.T)                  { test1328(t) }
    func Test1560(t *testing.T)                  { test1560(t) }
    func Test1635(t *testing.T)                  { test1635(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/tokenizer.go

    	"unicode"
    
    	"cmd/asm/internal/flags"
    	"cmd/internal/objabi"
    	"cmd/internal/src"
    )
    
    // A Tokenizer is a simple wrapping of text/scanner.Scanner, configured
    // for our purposes and made a TokenReader. It forms the lowest level,
    // turning text from readers into tokens.
    type Tokenizer struct {
    	tok  ScanToken
    	s    *scanner.Scanner
    	base *src.PosBase
    	line int
    	file *os.File // If non-nil, file descriptor to close.
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg testing, type T struct
    pkg testing/iotest, func DataErrReader(io.Reader) io.Reader
    pkg testing/iotest, func HalfReader(io.Reader) io.Reader
    pkg testing/iotest, func NewReadLogger(string, io.Reader) io.Reader
    pkg testing/iotest, func NewWriteLogger(string, io.Writer) io.Writer
    pkg testing/iotest, func OneByteReader(io.Reader) io.Reader
    pkg testing/iotest, func TimeoutReader(io.Reader) io.Reader
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top