Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for initNodes (0.2 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		// Setup
    		testEnv := newTestBinder(t, ctx)
    		testEnv.initVolumes(scenario.pvs, scenario.pvs)
    
    		var node *v1.Node
    		if len(scenario.initNodes) > 0 {
    			testEnv.initNodes(scenario.initNodes)
    			node = scenario.initNodes[0]
    		} else {
    			node = node1
    		}
    
    		if len(scenario.initCSINodes) > 0 {
    			testEnv.initCSINodes(scenario.initCSINodes)
    		}
    
    		// a. Init pvc cache
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    	tests := []struct {
    		name                    string
    		args                    *config.DefaultPreemptionArgs
    		nodeNames               []string
    		testPods                []*v1.Pod
    		initPods                []*v1.Pod
    		registerPlugins         []tf.RegisterPluginFunc
    		pdbs                    []*policy.PodDisruptionBudget
    		fakeFilterRC            framework.Code // return code for fake filter plugin
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/preemption/preemption_test.go

    				}
    			}
    		})
    	}
    }
    
    func TestDryRunPreemption(t *testing.T) {
    	tests := []struct {
    		name               string
    		nodes              []*v1.Node
    		testPods           []*v1.Pod
    		initPods           []*v1.Pod
    		numViolatingVictim int
    		expected           [][]Candidate
    	}{
    		{
    			name: "no pdb violation",
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(veryLargeRes).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/stmt.go

    			// Throw away the temp to avoid plain values as statements.
    			n = ir.NewBlockStmt(n.Pos(), init)
    			init = nil
    		}
    		if len(init) > 0 {
    			switch n.Op() {
    			case ir.OAS, ir.OAS2, ir.OBLOCK:
    				n.(ir.InitNode).PtrInit().Prepend(init...)
    
    			default:
    				init.Append(n)
    				n = ir.NewBlockStmt(n.Pos(), init)
    			}
    		}
    		return n
    
    	// special case for a receive where we throw away
    	// the value received.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/typecheck.go

    		tcFunc(n.(*ir.Func))
    		return n
    	}
    
    	// No return n here!
    	// Individual cases can type-assert n, introducing a new one.
    	// Each must execute its own return n.
    }
    
    func typecheckargs(n ir.InitNode) {
    	var list []ir.Node
    	switch n := n.(type) {
    	default:
    		base.Fatalf("typecheckargs %+v", n.Op())
    	case *ir.CallExpr:
    		list = n.Args
    		if n.IsDDD {
    			Exprs(list)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/expr.go

    )
    
    // The result of walkExpr MUST be assigned back to n, e.g.
    //
    //	n.Left = walkExpr(n.Left, init)
    func walkExpr(n ir.Node, init *ir.Nodes) ir.Node {
    	if n == nil {
    		return n
    	}
    
    	if n, ok := n.(ir.InitNode); ok && init == n.PtrInit() {
    		// not okay to use n->ninit when walking n,
    		// because we might replace n with some other node
    		// and would lose the init list.
    		base.Fatalf("walkExpr init == &n->ninit")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top