Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for initNodes (0.08 sec)

  1. 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)
  2. 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)
  3. 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