Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for findfunc (0.14 sec)

  1. src/cmd/cover/func.go

    			total += t
    			covered += c
    		}
    	}
    	fmt.Fprintf(tabber, "total:\t(statements)\t%.1f%%\n", percent(covered, total))
    
    	return nil
    }
    
    // findFuncs parses the file and returns a slice of FuncExtent descriptors.
    func findFuncs(name string) ([]*FuncExtent, error) {
    	fset := token.NewFileSet()
    	parsedFile, err := parser.ParseFile(fset, name, nil, 0)
    	if err != nil {
    		return nil, err
    	}
    	visitor := &FuncVisitor{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/util/intstr"
    )
    
    func defaultFillFuncs() map[reflect.Type]FillFunc {
    	funcs := map[reflect.Type]FillFunc{}
    	funcs[reflect.TypeOf(&runtime.RawExtension{})] = func(s string, i int, obj interface{}) {
    		// generate a raw object in normalized form
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. src/slices/sort_test.go

    			gotMin := Min(tt.data)
    			if gotMin != tt.wantMin {
    				t.Errorf("Min got %v, want %v", gotMin, tt.wantMin)
    			}
    
    			gotMinFunc := MinFunc(tt.data, intCmp)
    			if gotMinFunc != tt.wantMin {
    				t.Errorf("MinFunc got %v, want %v", gotMinFunc, tt.wantMin)
    			}
    
    			gotMax := Max(tt.data)
    			if gotMax != tt.wantMax {
    				t.Errorf("Max got %v, want %v", gotMax, tt.wantMax)
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/third_party/forked/golang/json/fields.go

    	return fmt.Sprintf("{name: %s, type: %v, tag: %v, index: %v, omitEmpty: %v, quoted: %v}", f.name, f.typ, f.tag, f.index, f.omitEmpty, f.quoted)
    }
    
    func fillField(f field) field {
    	f.nameBytes = []byte(f.name)
    	f.equalFold = foldFunc(f.nameBytes)
    	return f
    }
    
    // byName sorts field by name, breaking ties with depth,
    // then breaking ties with "name came from json tag", then
    // breaking ties with index sequence.
    type byName []field
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 13.1K bytes
    - Viewed (0)
  5. src/runtime/mranges.go

    	a.sysStat = sysStat
    	a.totalBytes = 0
    }
    
    // findSucc returns the first index in a such that addr is
    // less than the base of the addrRange at that index.
    func (a *addrRanges) findSucc(addr uintptr) int {
    	base := offAddr{addr}
    
    	// Narrow down the search space via a binary search
    	// for large addrRanges until we have at most iterMax
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. src/slices/sort.go

    		m = min(m, x[i])
    	}
    	return m
    }
    
    // MinFunc returns the minimal value in x, using cmp to compare elements.
    // It panics if x is empty. If there is more than one minimal element
    // according to the cmp function, MinFunc returns the first one.
    func MinFunc[S ~[]E, E any](x S, cmp func(a, b E) int) E {
    	if len(x) < 1 {
    		panic("slices.MinFunc: empty list")
    	}
    	m := x[0]
    	for i := 1; i < len(x); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:54:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/internal/abi/symtab.go

    	UnsafePointRestart2 = -4
    
    	// Like UnsafePointRestart1, but back to function entry if async preempted.
    	UnsafePointRestartAtEntry = -5
    )
    
    const MINFUNC = 16 // minimum size for a function
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 14:25:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/html.go

    	}
    	b.PrintHTML(buf)
    }
    
    type htmlBuilder struct {
    	endBlank bool
    	text     []string
    	endFunc  func(string) bool
    }
    
    func (c *htmlBuilder) extend(p *parseState, s line) (line, bool) {
    	if c.endBlank && s.isBlank() {
    		return s, false
    	}
    	t := s.string()
    	c.text = append(c.text, t)
    	if c.endFunc != nil && c.endFunc(t) {
    		return line{}, false
    	}
    	return line{}, true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/roundtrip_test.go

    		require.NoError(t, builder.AddToScheme(scheme))
    	}
    
    	opts := roundtrip.NewCompatibilityTestOptions(scheme)
    
    	// Fill unstructured JSON field types
    	opts.FillFuncs = map[reflect.Type]roundtrip.FillFunc{
    		reflect.TypeOf(&apiextensionv1.JSON{}): func(s string, i int, obj interface{}) {
    			obj.(*apiextensionv1.JSON).Raw = []byte(strconv.Quote(s + "Value"))
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/common/call.go

    	"istio.io/istio/pkg/test/framework/components/echo"
    	"istio.io/istio/pkg/test/scopes"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    type sendFunc func(req *proto.ForwardEchoRequest) (echoclient.Responses, error)
    
    func callInternal(srcName string, from echo.Caller, opts echo.CallOptions, send sendFunc) (echo.CallResult, error) {
    	// Create the proto request.
    	req := newForwardRequest(opts)
    	sendAndValidate := func() (echo.CallResult, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top