Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 289 for original (0.51 sec)

  1. src/database/sql/fakedb_test.go

    	for _, arg := range args {
    		switch arg.Value.(type) {
    		case int64, float64, bool, nil, []byte, string, time.Time:
    		default:
    			if !allowAny {
    				return fmt.Errorf("fakedb: invalid argument ordinal %[1]d: %[2]v, type %[2]T", arg.Ordinal, arg.Value)
    			}
    		}
    	}
    	return nil
    }
    
    func (c *fakeConn) Exec(query string, args []driver.Value) (driver.Result, error) {
    	// Ensure that ExecContext is called if available.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. src/go/doc/example.go

    	Play        *ast.File // a whole program version of the example
    	Comments    []*ast.CommentGroup
    	Output      string // expected output
    	Unordered   bool
    	EmptyOutput bool // expect empty output
    	Order       int  // original source code order
    }
    
    // Examples returns the examples found in testFiles, sorted by Name field.
    // The Order fields record the order in which the examples were encountered.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. src/os/exec/exec_test.go

    		t.Fatal(err)
    	}
    	if err := os.Chdir(dir); err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("Chdir(%#q)", dir)
    
    	t.Cleanup(func() {
    		if err := os.Chdir(prev); err != nil {
    			// Couldn't chdir back to the original working directory.
    			// panic instead of t.Fatal so that we don't run other tests
    			// in an unexpected location.
    			panic("couldn't restore working directory: " + err.Error())
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  4. test/prove.go

    // The fix for this issue allows prove to zero a right shift that was added as
    // part of the less-than-optimal reqwrite. That change by prove then allows
    // lateopt to clean up all the unnecessary parts of the original division
    // replacement. See issue #36159.
    func divShiftClean(n int) int {
    	if n < 0 {
    		return n
    	}
    	return n / int(8) // ERROR "Proved Rsh64x64 shifts to zero"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. src/runtime/runtime-gdb_test.go

    	// form "var.field" and not just "field".
    	// However, the newer dwarf location list code reconstituted
    	// aggregates from their fields and reverted their printing
    	// back to its original form.
    	// Only test that all variables are listed in 'info locals' since
    	// different versions of gdb print variables in different
    	// order and with differing amount of information and formats.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. src/os/os_windows_test.go

    // and then restore the original working directory at the end of the test.
    func chdir(t *testing.T, dir string) {
    	olddir, err := os.Getwd()
    	if err != nil {
    		t.Fatalf("chdir: %v", err)
    	}
    	if err := os.Chdir(dir); err != nil {
    		t.Fatalf("chdir %s: %v", dir, err)
    	}
    
    	t.Cleanup(func() {
    		if err := os.Chdir(olddir); err != nil {
    			t.Errorf("chdir to original working directory %s: %v", olddir, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/expr.go

    		t = types.UntypedInt
    	}
    	return l, r, t
    }
    
    // tcArith typechecks operands of a binary arithmetic expression.
    // The result of tcArith MUST be assigned back to original operands,
    // t is the type of the expression, and should be set by the caller. e.g:
    //
    //	n.X, n.Y, t = tcArith(n, op, n.X, n.Y)
    //	n.SetType(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. src/net/http/client_test.go

    	}
    	res.Body.Close()
    	if res.Header.Get("Location") == "" {
    		t.Errorf("no Location header in Response")
    	}
    }
    
    // Tests that Client redirects' contexts are derived from the original request's context.
    func TestClientRedirectsContext(t *testing.T) { run(t, testClientRedirectsContext) }
    func testClientRedirectsContext(t *testing.T, mode testMode) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/test.go

    	    Note that because coverage works by annotating the source
    	    code before compilation, compilation and test failures with
    	    coverage enabled may report line numbers that don't correspond
    	    to the original sources.
    
    	-covermode set,count,atomic
    	    Set the mode for coverage analysis for the package[s]
    	    being tested. The default is "set" unless -race is enabled,
    	    in which case it is "atomic".
    	    The values:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. src/internal/godebug/godebug.go

    // available to other packages. These settings are often used for compatibility
    // tweaks, when we need to change a default behavior but want to let users
    // opt back in to the original. For example GODEBUG=http2server=0 disables
    // HTTP/2 support in the net/http server.
    //
    // In typical usage, code should declare a Setting as a global
    // and then call Value each time the current setting value is needed:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top