Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for NewGraph (0.15 sec)

  1. plugin/pkg/auth/authorizer/node/graph_test.go

    			toType:      nodeVertexType,
    			toNamespace: "",
    			toName:      "node1",
    			start: func() *Graph {
    				g := NewGraph()
    				g.getOrCreateVertex_locked(nodeVertexType, "", "node1")
    				g.getOrCreateVertex_locked(configMapVertexType, "namespace1", "configmap1")
    				return g
    			}(),
    			expect: func() *Graph {
    				g := NewGraph()
    				g.getOrCreateVertex_locked(nodeVertexType, "", "node1")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/ProtocolToModelAdapterTest.groovy

            TestProtocolProject protocolProject = Mock()
            _ * protocolModel1.getProject() >> protocolProject
            _ * protocolModel2.getProject() >> protocolProject
    
            expect:
            def converter = adapter.newGraph()
            def model1 = converter.adapt(TestModel.class, protocolModel1)
            def model2 = converter.adapt(TestModel.class, protocolModel2)
            !model1.is(model2)
            model1.project.is(model2.project)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  3. src/internal/dag/parse.go

    package dag
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strings"
    )
    
    type Graph struct {
    	Nodes   []string
    	byLabel map[string]int
    	edges   map[string]map[string]bool
    }
    
    func newGraph() *Graph {
    	return &Graph{byLabel: map[string]int{}, edges: map[string]map[string]bool{}}
    }
    
    func (g *Graph) addNode(label string) bool {
    	if _, ok := g.byLabel[label]; ok {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/mvs/graph.go

    	selected map[string]string       // path → version
    }
    
    // NewGraph returns an incremental MVS graph containing only a set of root
    // dependencies and using the given max function for version strings.
    //
    // The caller must ensure that the root slice is not modified while the Graph
    // may be in use.
    func NewGraph(cmp func(p, v1, v2 string) int, roots []module.Version) *Graph {
    	g := &Graph{
    		cmp:      cmp,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    	g := NewGraph()
    	populate(g, nodes, pods, pvs, attachments, slices)
    	// Garbage collect before the first iteration
    	runtime.GC()
    	b.ResetTimer()
    
    	b.SetParallelism(100)
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			g.AddPod(pods[0])
    		}
    	})
    }
    
    func BenchmarkAuthorization(b *testing.B) {
    	g := NewGraph()
    
    	opts := &sampleDataOpts{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  6. src/cmd/internal/pgo/pprof.go

    			valueIndex = i
    			break
    		}
    	}
    
    	if valueIndex == -1 {
    		return nil, fmt.Errorf(`profile does not contain a sample index with value/type "samples/count" or cpu/nanoseconds"`)
    	}
    
    	g := profile.NewGraph(p, &profile.Options{
    		SampleValue: func(v []int64) int64 { return v[valueIndex] },
    	})
    
    	namedEdgeMap, totalWeight, err := createNamedEdgeMap(g)
    	if err != nil {
    		return nil, err
    	}
    
    	if totalWeight == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ParameterAwareBuildControllerAdapterTest.groovy

    import spock.lang.Specification
    
    class ParameterAwareBuildControllerAdapterTest extends Specification {
        def graphAdapter = Mock(ObjectGraphAdapter)
        def adapter = Mock(ProtocolToModelAdapter) {
            newGraph() >> graphAdapter
        }
        def mapping = Stub(ModelMapping) {
            getModelIdentifierFromModelType(_) >> { Class type ->
                return Stub(ModelIdentifier) {
                    getName() >> type.simpleName
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	}
    
    	if unit != "" {
    		o.OutputUnit = unit
    	} else {
    		o.OutputUnit = o.SampleUnit
    	}
    }
    
    // newGraph creates a new graph for this report. If nodes is non-nil,
    // only nodes whose info matches are included. Otherwise, all nodes
    // are included, without trimming.
    func (rpt *Report) newGraph(nodes graph.NodeSet) *graph.Graph {
    	o := rpt.options
    
    	// Clean up file paths using heuristics.
    	prof := rpt.prof
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/UnparameterizedBuildController.java

            this.adapter = adapter;
            // Treat all models returned to the action as part of the same object graph
            this.resultAdapter = adapter.newGraph();
            this.modelMapping = modelMapping;
            this.gradleVersion = gradleVersion;
            this.rootDir = rootDir;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. pkg/kubeapiserver/authorizer/config.go

    			if utilfeature.DefaultFeatureGate.Enabled(features.DynamicResourceAllocation) {
    				slices = config.VersionedInformerFactory.Resource().V1alpha2().ResourceSlices()
    			}
    			node.RegisterMetrics()
    			graph := node.NewGraph()
    			node.AddGraphEventHandlers(
    				graph,
    				config.VersionedInformerFactory.Core().V1().Nodes(),
    				config.VersionedInformerFactory.Core().V1().Pods(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top