Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for perfunc (0.14 sec)

  1. src/cmd/cover/cover.go

    	}
    	switch pkgconfig.Granularity {
    	case "perblock":
    		cgran = coverage.CtrGranularityPerBlock
    	case "perfunc":
    		cgran = coverage.CtrGranularityPerFunc
    	default:
    		return fmt.Errorf(`%s: pkgconfig requires perblock/perfunc value`, path)
    	}
    	return nil
    }
    
    // Block represents the information about a basic block to be recorded in the analysis.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  2. src/internal/coverage/defs.go

    	CtrGranularityPerBlock
    	CtrGranularityPerFunc
    )
    
    func (cm CounterGranularity) String() string {
    	switch cm {
    	case CtrGranularityPerBlock:
    		return "perblock"
    	case CtrGranularityPerFunc:
    		return "perfunc"
    	}
    	return "<invalid>"
    }
    
    // Name of file within the "go test -cover" temp coverdir directory
    // containing a list of meta-data files for packages being tested
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    		Storage:        wrappedStorage,
    		Versioner:      storage.APIObjectVersioner{},
    		GroupResource:  schema.GroupResource{Resource: "pods"},
    		ResourcePrefix: setupOpts.resourcePrefix,
    		KeyFunc:        setupOpts.keyFunc,
    		GetAttrsFunc:   GetPodAttrs,
    		NewFunc:        newPod,
    		NewListFunc:    newPodList,
    		IndexerFuncs:   setupOpts.indexerFuncs,
    		Codec:          codecs.LegacyCodec(examplev1.SchemeGroupVersion),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/func.go

    		}
    	}
    
    	return "", name
    }
    
    var CurFunc *Func
    
    // WithFunc invokes do with CurFunc and base.Pos set to curfn and
    // curfn.Pos(), respectively, and then restores their previous values
    // before returning.
    func WithFunc(curfn *Func, do func()) {
    	oldfn, oldpos := CurFunc, base.Pos
    	defer func() { CurFunc, base.Pos = oldfn, oldpos }()
    
    	CurFunc, base.Pos = curfn, curfn.Pos()
    	do()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go

    		codec := NewCodec(serializer, serializer, testCase.convertor, nil, testCase.typer, nil, testCase.targetVersion, nil, "noxu-scheme")
    		err := codec.Encode(testCase.outObj, ioutil.Discard)
    		if testCase.errFunc != nil {
    			if !testCase.errFunc(err) {
    				t.Errorf("%v: failed: %v", testCase.name, err)
    			}
    			return
    		}
    		assert.NoError(t, err)
    		assert.Equal(t, testCase.expectedObj, serializer.obj)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 08 14:55:24 UTC 2018
    - 10.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/complit.go

    	// TODO(khr): assign these temps in order phase so we can reuse them across multiple maplits?
    	tmpkey := typecheck.TempAt(base.Pos, ir.CurFunc, m.Type().Key())
    	tmpelem := typecheck.TempAt(base.Pos, ir.CurFunc, m.Type().Elem())
    
    	for _, r := range entries {
    		r := r.(*ir.KeyExpr)
    		index, elem := r.Key, r.Value
    
    		ir.SetPos(index)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  7. pkg/registry/core/namespace/storage/storage.go

    	if namespace.DeletionTimestamp.IsZero() {
    		key, err := r.store.KeyFunc(ctx, name)
    		if err != nil {
    			return nil, false, err
    		}
    
    		preconditions := storage.Preconditions{UID: options.Preconditions.UID, ResourceVersion: options.Preconditions.ResourceVersion}
    
    		out := r.store.NewFunc()
    		err = r.store.Storage.GuaranteedUpdate(
    			ctx, key, out, false, &preconditions,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/abi.go

    		n := ir.NewReturnStmt(base.Pos, nil)
    		n.Results = []ir.Node{call}
    		tail = n
    	}
    	fn.Body.Append(tail)
    
    	typecheck.FinishFuncBody()
    
    	ir.CurFunc = fn
    	typecheck.Stmts(fn.Body)
    
    	// Restore previous context.
    	base.Pos = savepos
    	ir.CurFunc = savedcurfn
    }
    
    // CreateWasmImportWrapper creates a wrapper for imported WASM functions to
    // adapt them to the Go calling convention. The body for this function is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/builtin.go

    	nl := typecheck.TempAt(base.Pos, ir.CurFunc, n.X.Type())
    	nr := typecheck.TempAt(base.Pos, ir.CurFunc, n.Y.Type())
    	var l []ir.Node
    	l = append(l, ir.NewAssignStmt(base.Pos, nl, n.X))
    	l = append(l, ir.NewAssignStmt(base.Pos, nr, n.Y))
    
    	nfrm := ir.NewUnaryExpr(base.Pos, ir.OSPTR, nr)
    	nto := ir.NewUnaryExpr(base.Pos, ir.OSPTR, nl)
    
    	nlen := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    
    	// n = len(to)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_test.go

    	tests := []struct {
    		name                 string
    		specName             string
    		driver               string
    		volName              string
    		specFunc             func(specName, driver, volName string) *volume.Spec
    		podFunc              func() *api.Pod
    		isInline             bool
    		findPluginShouldFail bool
    		driverSpec           *storage.CSIDriverSpec
    		watchTimeout         time.Duration
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
Back to top