Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 971 for caller2b (0.16 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. src/runtime/callers_test.go

    	// open-coded defer processing)
    	want := []string{"runtime.Callers", "runtime_test.TestCallersPanic.func1",
    		"runtime.gopanic", "runtime_test.f3", "runtime_test.f2", "runtime_test.f1",
    		"runtime_test.TestCallersPanic"}
    
    	defer func() {
    		if r := recover(); r == nil {
    			t.Fatal("did not panic")
    		}
    		pcs := make([]uintptr, 20)
    		pcs = pcs[:runtime.Callers(0, pcs)]
    		testCallers(t, pcs, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      // values.
      llvm::SetVector<Operation*> ops;
      ops.insert(callers.forward);
      ops.insert(callers.core_tpu);
      std::vector<int> result_map;
      result_map.reserve(callers.forward->getNumResults() +
                         callers.core_tpu->getNumResults());
      int result_pos = 0;
      for (auto res : callers.forward->getResults()) {
        bool is_output = false;
        for (auto user : res.getUsers()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top