Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestGlobal (0.38 sec)

  1. src/embed/internal/embedtest/embed_test.go

    	}
    	if !reflect.DeepEqual(names, expect) {
    		t.Errorf("readdir %v = %v, want %v", name, names, expect)
    	}
    }
    
    // Tests for issue 49514.
    var _ = '"'
    var _ = '\''
    var _ = '🦆'
    
    func TestGlobal(t *testing.T) {
    	testFiles(t, global, "concurrency.txt", "Concurrency is not parallelism.\n")
    	testFiles(t, global, "testdata/hello.txt", "hello, world\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 20:10:16 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. src/syscall/js/js_test.go

    		if got, want := myDiv.Get("innerHTML").String(), data; got != want {
    			b.Errorf("got %s, want %s", got, want)
    		}
    		document.Get("body").Call("removeChild", div)
    	}
    }
    
    func TestGlobal(t *testing.T) {
    	ident := js.FuncOf(func(this js.Value, args []js.Value) any {
    		return args[0]
    	})
    	defer ident.Release()
    
    	if got := ident.Invoke(js.Global()); !got.Equal(js.Global()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testshared/shared_test.go

    	goCmd(t, "install", "-linkshared", "./iface")
    	run(t, "running type/itab uniqueness tester", "../../bin/iface")
    }
    
    // Access a global variable from a library.
    func TestGlobal(t *testing.T) {
    	globalSkip(t)
    	goCmd(t, "install", "-buildmode=shared", "-linkshared", "./globallib")
    	goCmd(t, "install", "-linkshared", "./global")
    	run(t, "global executable", "../../bin/global")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
Back to top