Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkNotNil (0.08 sec)

  1. pkg/test/framework/components/echo/config/builder.go

    // NewWithOutput creates a new Builder that targets the given config as output.
    func NewWithOutput(t framework.TestContext, out config.Plan) *Builder {
    	t.Helper()
    	checkNotNil("t", t)
    	checkNotNil("out", out)
    
    	return &Builder{
    		t:   t,
    		out: out,
    	}
    }
    
    func checkNotNil(name string, value any) {
    	if value == nil {
    		panic(fmt.Sprintf("%s must not be nil", name))
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 7.6K bytes
    - Viewed (0)
Back to top