cockroach: github.com/cockroachdb/cockroach/pkg/testutils/zerofields Index | Files

package zerofields

import "github.com/cockroachdb/cockroach/pkg/testutils/zerofields"

Index

Package Files

no_zero_field.go

func NoZeroField Uses

func NoZeroField(v interface{}) error

NoZeroField returns nil if none of the fields of the struct underlying the interface are equal to the zero value, and an error otherwise. It will panic if the struct has unexported fields and for any non-struct.

Package zerofields imports 2 packages (graph). Updated 2019-07-12. Refresh now. Tools for package owners.