Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 429 for funcname (0.18 sec)

  1. src/internal/coverage/cfile/testsupport.go

    				// these in the existing format).
    				if u.Parent != 0 {
    					continue
    				}
    				count := uint32(0)
    				if haveCounters {
    					count = counters[i]
    				}
    				ts.cf.AddUnit(fd.Srcfile, fd.Funcname, fd.Lit, u, count)
    			}
    		}
    	}
    	return nil
    }
    
    type pkfunc struct {
    	pk, fcn uint32
    }
    
    func (ts *tstate) readAuxMetaFiles(metafiles string, importpaths map[string]struct{}) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. cmd/handler-api.go

    		if deadline <= 0 {
    			globalHTTPStats.addRequestsInQueue(-1)
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		if tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt); ok {
    			tc.FuncName = "s3.MaxClients"
    		}
    
    		deadlineTimer := time.NewTimer(deadline)
    		defer deadlineTimer.Stop()
    
    		ctx := r.Context()
    		select {
    		case pool <- struct{}{}:
    			defer func() { <-pool }()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. pkg/util/iptables/iptables_test.go

    			t.Errorf("Expected result: %v, Got result: %v", testCase.Expected, runner.hasCheck)
    		}
    	}
    }
    
    func TestIPTablesCommands(t *testing.T) {
    	testCases := []struct {
    		funcName    string
    		protocol    Protocol
    		expectedCmd string
    	}{
    		{"iptablesCommand", ProtocolIPv4, cmdIPTables},
    		{"iptablesCommand", ProtocolIPv6, cmdIP6Tables},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
  4. src/cmd/cover/cover.go

    	// for more details.
    	if pkgconfig.Local {
    		filename = f.name
    	}
    
    	// Hand off function to meta-data builder.
    	fd := coverage.FuncDesc{
    		Funcname: funcname,
    		Srcfile:  filename,
    		Units:    f.fn.units,
    		Lit:      flit,
    	}
    	funcId := f.mdb.AddFunc(fd)
    
    	hookWrite := func(cv string, which int, val string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. cmd/batch-handlers.go

    		traceType = madmin.TraceBatchExpire
    	}
    	funcName := fmt.Sprintf("%s() (job-name=%s)", d.String(), job)
    	if attempts > 0 {
    		funcName = fmt.Sprintf("%s() (job-name=%s,attempts=%s)", d.String(), job, humanize.Ordinal(attempts))
    	}
    	return madmin.TraceInfo{
    		TraceType: traceType,
    		Time:      startTime,
    		NodeName:  globalLocalNodeName,
    		FuncName:  funcName,
    		Duration:  duration,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  6. src/runtime/error.go

    // panicwrap generates a panic for a call to a wrapped value method
    // with a nil pointer receiver.
    //
    // It is called from the generated wrapper code.
    func panicwrap() {
    	pc := getcallerpc()
    	name := funcNameForPrint(funcname(findfunc(pc)))
    	// name is something like "main.(*T).F".
    	// We want to extract pkg ("main"), typ ("T"), and meth ("F").
    	// Do it by finding the parens.
    	i := bytealg.IndexByteString(name, '(')
    	if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/internal/coverage/defs.go

    // if we want to capture a post-inlining view of the world, the
    // representations of source positions would need to be a good deal more
    // complicated.
    type FuncDesc struct {
    	Funcname string
    	Srcfile  string
    	Units    []CoverableUnit
    	Lit      bool // true if this is a function literal
    }
    
    // CoverableUnit describes the source characteristics of a single
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. src/os/signal/signal_cgo_test.go

    		fmt.Fprintf(os.Stderr, "unknown subprocess level %s\n", lvl)
    		os.Exit(1)
    	}
    
    	t.Parallel()
    
    	pty, procTTYName, err := testpty.Open()
    	if err != nil {
    		ptyErr := err.(*testpty.PtyError)
    		if ptyErr.FuncName == "posix_openpt" && ptyErr.Errno == syscall.EACCES {
    			t.Skip("posix_openpt failed with EACCES, assuming chroot and skipping")
    		}
    		t.Fatal(err)
    	}
    	defer pty.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. cmd/ftp-server-driver.go

    	var errStr string
    	if err != nil {
    		errStr = err.Error()
    	}
    	return madmin.TraceInfo{
    		TraceType: madmin.TraceFTP,
    		Time:      startTime,
    		NodeName:  globalLocalNodeName,
    		FuncName:  fmt.Sprintf(s.Cmd),
    		Duration:  time.Since(startTime),
    		Path:      objPath,
    		Error:     errStr,
    		Bytes:     sz,
    		Custom: map[string]string{
    			"user":   s.Sess.LoginUser(),
    			"cmd":    s.Cmd,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. hack/lib/util.sh

    #  declare -a Z=([0]="1 1" [1]="2 2" [2]="3 3")
    function kube::util::read-array {
      if [[ -z "$1" ]]; then
        echo "usage: ${FUNCNAME[0]} <varname>" >&2
        return 1
      fi
      if [[ -n $(declare -p "$1" 2>/dev/null) ]]; then
        if ! declare -p "$1" 2>/dev/null | grep -q '^declare -a'; then
          echo "${FUNCNAME[0]}: $1 is defined but isn't an array" >&2
          return 2
        fi
      fi
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top