Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 442 for caller2b (0.15 sec)

  1. test/escape_param.go

    	return p
    }
    
    func caller0a() {
    	i := 0
    	_ = param0(&i)
    }
    
    func caller0b() {
    	i := 0 // ERROR "moved to heap: i$"
    	sink = param0(&i)
    }
    
    // in, in -> out, out
    func param1(p1, p2 *int) (*int, *int) { // ERROR "leaking param: p1 to result ~r0" "leaking param: p2 to result ~r1"
    	return p1, p2
    }
    
    func caller1() {
    	i := 0 // ERROR "moved to heap: i$"
    	j := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/caller.go

    type CallResult struct {
    	From      Caller
    	Opts      CallOptions
    	Responses echo.Responses
    }
    
    type Caller interface {
    	// Call from this Instance to a target Instance.
    	Call(options CallOptions) (CallResult, error)
    	CallOrFail(t test.Failer, options CallOptions) CallResult
    }
    
    type Callers []Caller
    
    // Instances returns an Instances if all callers are Instance, otherwise returns nil.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 12 22:50:35 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. test/typeparam/issue50177.go

    // conflict with local non-generic types and local variables.
    func caller0() {
    	type X[T any] struct {
    		fn Fn[int]
    	}
    
    	x := X[int]{func(v int) { fmt.Println(v) }}
    	x.fn(0)
    }
    
    func caller1(val int) {
    	type X[T any] struct {
    		fn FnErr[int]
    	}
    
    	x := X[int]{func(v int) error { fmt.Println(v); return nil }}
    	x.fn(0)
    }
    
    func caller1a(val int) {
    	type X struct {
    		fn func(float64) error
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2K bytes
    - Viewed (0)
  4. security/pkg/server/ca/authenticate/cert_authenticator_test.go

    }
    
    func TestAuthenticate_clientCertAuthenticator(t *testing.T) {
    	callerID := "test.identity"
    	ids := []util.Identity{
    		{Type: util.TypeURI, Value: []byte(callerID)},
    	}
    	sanExt, err := util.BuildSANExtension(ids)
    	if err != nil {
    		t.Error(err)
    	}
    
    	testCases := map[string]struct {
    		certChain          [][]*x509.Certificate
    		caller             *security.Caller
    		authenticateErrMsg string
    		fakeAuthInfo       *mockAuthInfo
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 01:20:59 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. test/fixedbugs/issue21879.go

    package main
    
    import (
    	"runtime"
    )
    
    func main() {
    	println(caller().frame.Function)
    
    	// Used to erroneously print "main.call.name" instead of
    	// "main.main".
    	println(caller().name())
    }
    
    func caller() call {
    	var pcs [3]uintptr
    	n := runtime.Callers(1, pcs[:])
    	frames := runtime.CallersFrames(pcs[:n])
    	frame, _ := frames.Next()
    	frame, _ = frames.Next()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 18:35:24 UTC 2017
    - 658 bytes
    - Viewed (0)
  6. src/log/slog/example_wrap_test.go

    // The log record contains the source position of the caller of Infof.
    func Infof(logger *slog.Logger, format string, args ...any) {
    	if !logger.Enabled(context.Background(), slog.LevelInfo) {
    		return
    	}
    	var pcs [1]uintptr
    	runtime.Callers(2, pcs[:]) // skip [Callers, Infof]
    	r := slog.NewRecord(time.Now(), slog.LevelInfo, fmt.Sprintf(format, args...), pcs[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/io/ioutil/tempfile.go

    // for temporary files (see [os.TempDir]).
    // Multiple programs calling TempFile simultaneously
    // will not choose the same file. The caller can use f.Name()
    // to find the pathname of the file. It is the caller's responsibility
    // to remove the file when no longer needed.
    //
    // Deprecated: As of Go 1.17, this function simply calls [os.CreateTemp].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is
       * reached, the proxy will attempt to abort the call to the target, and will throw an {@link
       * UncheckedTimeoutException} to the caller.
       *
       * <p>It is important to note that the primary purpose of the proxy object is to return control to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. pkg/log/zapcore_handler.go

    	zapcore.ErrorLevel: ErrorLevel,
    	zapcore.WarnLevel:  WarnLevel,
    	zapcore.InfoLevel:  InfoLevel,
    	zapcore.DebugLevel: DebugLevel,
    }
    
    // callerSkipOffset is how many callers to pop off the stack to determine the caller function locality, used for
    // adding file/line number to log output.
    const callerSkipOffset = 3
    
    func dumpStack(level zapcore.Level, scope *Scope) bool {
    	thresh := toLevel[level]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 01:05:12 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. src/net/file.go

    func (fileAddr) Network() string  { return "file+net" }
    func (f fileAddr) String() string { return string(f) }
    
    // FileConn returns a copy of the network connection corresponding to
    // the open file f.
    // It is the caller's responsibility to close f when finished.
    // Closing c does not affect f, and closing f does not affect c.
    func FileConn(f *os.File) (c Conn, err error) {
    	c, err = fileConn(f)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 09 06:14:44 UTC 2019
    - 1.7K bytes
    - Viewed (0)
Back to top