Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for testfunc0 (0.17 sec)

  1. src/syscall/js/js_test.go

    		t.Errorf("got %v, want %v", got, 42)
    	}
    }
    
    func TestZeroValue(t *testing.T) {
    	var v js.Value
    	if !v.IsUndefined() {
    		t.Error("zero js.Value is not js.Undefined()")
    	}
    }
    
    func TestFuncOf(t *testing.T) {
    	c := make(chan struct{})
    	cb := js.FuncOf(func(this js.Value, args []js.Value) any {
    		if got := args[0].Int(); got != 42 {
    			t.Errorf("got %#v, want %#v", got, 42)
    		}
    		c <- struct{}{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/test/test.go

    'Go test' recompiles each package along with any files with names matching
    the file pattern "*_test.go".
    These additional files can contain test functions, benchmark functions, fuzz
    tests and example functions. See 'go help testfunc' for more.
    Each listed package causes the execution of a separate test binary.
    Files whose names begin with "_" (including "_test.go") or "." are ignored.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    // implicit padding between arguments.
    func dummy(b byte, c int, d byte, e two, f byte, g float32, h byte) (i byte, j int, k byte, l two, m byte, n float32, o byte) {
    	return b, c, d, e, f, g, h
    }
    
    func TestFunc(t *testing.T) {
    	ret := ValueOf(dummy).Call([]Value{
    		ValueOf(byte(10)),
    		ValueOf(20),
    		ValueOf(byte(30)),
    		ValueOf(two{40, 50}),
    		ValueOf(byte(60)),
    		ValueOf(float32(70)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    	}
    }
    
    // tryTimeouts runs testFunc with increasing timeouts. Test passes on first success,
    // and fails if all timeouts fail.
    func tryTimeouts(t *testing.T, testFunc func(timeout time.Duration) error) {
    	tries := []time.Duration{250 * time.Millisecond, 500 * time.Millisecond, 1 * time.Second}
    	for i, timeout := range tries {
    		err := testFunc(timeout)
    		if err == nil {
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. src/cmd/go/alldocs.go

    //	module-auth     module authentication using go.sum
    //	packages        package lists and patterns
    //	private         configuration for downloading non-public code
    //	testflag        testing flags
    //	testfunc        testing functions
    //	vcs             controlling version control with GOVCS
    //
    // Use "go help <topic>" for more information about that topic.
    //
    // # Start a bug report
    //
    // Usage:
    //
    //	go bug
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top