Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 81 for Testing (0.23 sec)

  1. src/cmd/asm/internal/asm/operand_test.go

    	parser := newParser("mips")
    	testOperandParser(t, parser, mipsOperandTests)
    }
    
    func TestMIPS64OperandParser(t *testing.T) {
    	parser := newParser("mips64")
    	testOperandParser(t, parser, mips64OperandTests)
    }
    
    func TestLOONG64OperandParser(t *testing.T) {
    	parser := newParser("loong64")
    	testOperandParser(t, parser, loong64OperandTests)
    }
    
    func TestS390XOperandParser(t *testing.T) {
    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)
  2. src/cmd/asm/internal/asm/pseudo_test.go

    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))
    	}
    	return res
    }
    
    func TestErroneous(t *testing.T) {
    
    	type errtest struct {
    		pseudo   string
    		operands string
    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)
  3. src/bufio/export_test.go

    // Copyright 2013 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 bufio
    
    // Exported for testing only.
    import (
    	"unicode/utf8"
    )
    
    var IsSpace = isSpace
    
    const DefaultBufSize = defaultBufSize
    
    func (s *Scanner) MaxTokenSize(n int) {
    	if n < utf8.UTFMax || n > 1e9 {
    		panic("bad max token size")
    	}
    	if n < len(s.buf) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 17:17:44 GMT 2017
    - 597 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callback.go

    	if f == nil {
    		panic("missing callback function")
    	}
    	f()
    }
    
    func testCallback(t *testing.T) {
    	var x = false
    	nestedCall(func() { x = true })
    	if !x {
    		t.Fatal("nestedCall did not call func")
    	}
    }
    
    func testCallbackGC(t *testing.T) {
    	nestedCall(runtime.GC)
    }
    
    func testCallbackPanic(t *testing.T) {
    	// Make sure panic during callback unwinds properly.
    	if lockedOSThread() {
    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)
  5. api/go1.18.txt

    pkg testing, method (*F) Fatal(...interface{})
    pkg testing, method (*F) Fatalf(string, ...interface{})
    pkg testing, method (*F) Fuzz(interface{})
    pkg testing, method (*F) Helper()
    pkg testing, method (*F) Log(...interface{})
    pkg testing, method (*F) Logf(string, ...interface{})
    pkg testing, method (*F) Name() string
    pkg testing, method (*F) Setenv(string, string)
    pkg testing, method (*F) Skip(...interface{})
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    func BenchmarkIndexHard1(b *testing.B) { benchmarkIndexHard(b, []byte("<>")) }
    func BenchmarkIndexHard2(b *testing.B) { benchmarkIndexHard(b, []byte("</pre>")) }
    func BenchmarkIndexHard3(b *testing.B) { benchmarkIndexHard(b, []byte("<b>hello world</b>")) }
    func BenchmarkIndexHard4(b *testing.B) {
    	benchmarkIndexHard(b, []byte("<pre><b>hello</b><strong>world</strong></pre>"))
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/cgo_linux_test.go

    	}
    	testSetgidStress(t)
    }
    
    func Test1435(t *testing.T) { test1435(t) }
    func Test6997(t *testing.T) { test6997(t) }
    
    func Test9400(t *testing.T) {
    	if _, err := os.Stat("/etc/alpine-release"); err == nil {
    		t.Skip("setgid is broken with musl libc - go.dev/issue/39857")
    	}
    	test9400(t)
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue24161_darwin_test.go

    //go:build cgo
    
    package cgotest
    
    import (
    	"testing"
    
    	"cmd/cgo/internal/test/issue24161arg"
    	"cmd/cgo/internal/test/issue24161e0"
    	"cmd/cgo/internal/test/issue24161e1"
    	"cmd/cgo/internal/test/issue24161e2"
    	"cmd/cgo/internal/test/issue24161res"
    )
    
    func Test24161Arg(t *testing.T) {
    	issue24161arg.Test(t)
    }
    func Test24161Res(t *testing.T) {
    	issue24161res.Test(t)
    }
    Go
    - Registered: Tue Apr 09 11:13:10 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 716 bytes
    - Viewed (0)
  9. src/archive/zip/writer_test.go

    // license that can be found in the LICENSE file.
    
    package zip
    
    import (
    	"bytes"
    	"compress/flate"
    	"encoding/binary"
    	"fmt"
    	"hash/crc32"
    	"io"
    	"io/fs"
    	"math/rand"
    	"os"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    // TODO(adg): a more sophisticated test suite
    
    type WriteTest struct {
    	Name   string
    	Data   []byte
    	Method uint16
    	Mode   fs.FileMode
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  10. src/bytes/boundary_test.go

    	}
    	return b[pagesize : 2*pagesize]
    }
    
    func TestEqualNearPageBoundary(t *testing.T) {
    	t.Parallel()
    	b := dangerousSlice(t)
    	for i := range b {
    		b[i] = 'A'
    	}
    	for i := 0; i <= len(b); i++ {
    		Equal(b[:i], b[len(b)-i:])
    		Equal(b[len(b)-i:], b[:i])
    	}
    }
    
    func TestIndexByteNearPageBoundary(t *testing.T) {
    	t.Parallel()
    	b := dangerousSlice(t)
    	for i := range b {
    		idx := IndexByte(b[i:], 1)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top