Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for Run (0.41 sec)

  1. src/cmd/cgo/internal/swig/swig_test.go

    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Callback")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Callback") })
    }
    
    func run(t *testing.T, dir string, lto bool, args ...string) {
    	runArgs := append([]string{"run", "."}, args...)
    	cmd := exec.Command("go", runArgs...)
    	cmd.Dir = dir
    	if lto {
    		const cflags = "-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option"
    		cmd.Env = append(cmd.Environ(),
    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)
  2. src/cmd/cgo/internal/swig/testdata/callback/main.go

    	fmt.Fprintln(os.Stderr, fmt.Sprintf(f, args...))
    	os.Exit(1)
    }
    
    type GoCallback struct{}
    
    func (p *GoCallback) Run() string {
    	return "GoCallback.Run"
    }
    
    func testCall() {
    	c := NewCaller()
    	cb := NewCallback()
    
    	c.SetCallback(cb)
    	s := c.Call()
    	if s != "Callback::run" {
    		fatal("unexpected string from Call: %q", s)
    	}
    	c.DelCallback()
    }
    
    func testCallback() {
    	c := NewCaller()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 1K bytes
    - Viewed (0)
  3. src/all.bat

    L3::: license that can be found in the LICENSE file.
    L4:
    L5:@echo off
    L6:
    L7:setlocal
    L8:
    L9:if exist make.bat goto ok
    L10:echo all.bat must be run from go\src
    L11::: cannot exit: would kill parent command interpreter
    L12:goto end
    L13::ok
    L14:
    L15:call .\make.bat --no-banner --no-local
    L16:if %GOBUILDFAIL%==1 goto end
    L17:call .\run.bat --no-rebuild --no-local
    L18:if %GOBUILDFAIL%==1 goto end
    L19:"%GOTOOLDIR%/dist" banner
    L20:
    L21::end
    L22:if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
    ...
    Batch File
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 19 14:36:22 GMT 2023
    - 543 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue18146.go

    			}()
    		}
    		runtime.GOMAXPROCS(threads)
    		argv := append(os.Args, "-test.run=^$")
    		if err := syscall.Exec(os.Args[0], argv, os.Environ()); err != nil {
    			t.Fatal(err)
    		}
    	}
    
    	var cmds []*exec.Cmd
    	defer func() {
    		for _, cmd := range cmds {
    			cmd.Process.Kill()
    		}
    	}()
    
    	args := append(append([]string(nil), os.Args[1:]...), "-test.run=^Test18146$")
    	for n := attempts; n > 0; n-- {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    assigning to or evaluating <code>x.f</code>
    causes a <a href="#Run_time_panics">run-time panic</a>.
    </li>
    
    <li>
    If <code>x</code> is of interface type and has the value
    <code>nil</code>, <a href="#Calls">calling</a> or
    <a href="#Method_values">evaluating</a> the method <code>x.f</code>
    causes a <a href="#Run_time_panics">run-time panic</a>.
    </li>
    </ol>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/cmd/api/api_test.go

    	"path/filepath"
    	"sort"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var flagCheck = flag.Bool("check", false, "run API checks")
    
    func TestMain(m *testing.M) {
    	flag.Parse()
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    	build.Default.GOROOT = testenv.GOROOT(nil)
    
    	os.Exit(m.Run())
    }
    
    var (
    	updateGolden = flag.Bool("updategolden", false, "update golden files")
    )
    
    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)
  7. misc/wasm/wasm_exec.js

    						this.mem.setUint8(sp + 48, 1);
    					},
    
    					"debug": (value) => {
    						console.log(value);
    					},
    				}
    			};
    		}
    
    		async run(instance) {
    			if (!(instance instanceof WebAssembly.Instance)) {
    				throw new Error("Go.run: WebAssembly.Instance expected");
    			}
    			this._inst = instance;
    			this.mem = new DataView(this._inst.exports.mem.buffer);
    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)
  8. src/bootstrap.bash

    #!/usr/bin/env bash
    # 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.
    
    # When run as (for example)
    #
    #	GOOS=linux GOARCH=ppc64 bootstrap.bash
    #
    # this script cross-compiles a toolchain for that GOOS/GOARCH
    # combination, leaving the resulting tree in ../../go-${GOOS}-${GOARCH}-bootstrap.
    # That tree can be copied to a machine of the given target type
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Jan 20 17:52:26 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/pseudo_test.go

    	}{
    		{
    			allowABI: false,
    			tests:    nonRuntimeTests,
    		},
    		{
    			allowABI: true,
    			tests:    runtimeTests,
    		},
    	}
    
    	// Note these errors should be independent of the architecture.
    	// Just run the test with amd64.
    	parser := newParser("amd64")
    	var buf strings.Builder
    	parser.errorWriter = &buf
    
    	for _, cat := range testcats {
    		for _, test := range cat.tests {
    			parser.allowABI = cat.allowABI
    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)
  10. src/archive/zip/reader_test.go

    				Content:  []byte{},
    				Mode:     0666,
    				Modified: time.Date(2021, 12, 29, 0, 0, 0, 0, timeZone(0)),
    			},
    		},
    	},
    }
    
    func TestReader(t *testing.T) {
    	for _, zt := range tests {
    		t.Run(zt.Name, func(t *testing.T) {
    			readTestZip(t, zt)
    		})
    	}
    }
    
    func readTestZip(t *testing.T, zt ZipTest) {
    	var z *Reader
    	var err error
    	var raw []byte
    	if zt.Source != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top