src/client/pkg/require/require.go
func Nil(tb testing.TB, object interface{}, msgAndArgs ...interface{}) {
	tb.Helper()
	if object == nil {
		return
	}
	value := reflect.ValueOf(object)
	kind := value.Kind()
	if kind >= reflect.Chan && kind <= reflect.Slice && value.IsNil() {
		return
	}

	fatal(tb, msgAndArgs, "Expected value to be nil, but was %v", object)
}
func Nil(tb testing.TB, object interface{}, msgAndArgs ...interface{}) {
	tb.Helper()
	if object == nil {
		return
	}
	value := reflect.ValueOf(object)
	kind := value.Kind()
	if kind >= reflect.Chan && kind <= reflect.Slice && value.IsNil() {
		return
	}

	fatal(tb, msgAndArgs, "Expected value to be nil, but was %v", object)
}
func Nil ( tb testing . TB , object interface { } , msgAndArgs ... interface { } ) { tb . Helper ( ) if object == nil { return } value := reflect . ValueOf ( object ) kind := value . Kind ( ) if kind >= reflect . Chan && kind <= reflect . Slice && value . IsNil ( ) { return } fatal ( tb , msgAndArgs , " " , object ) }
// Nil checks a value is nil.
Nil checks a value is nil .