Skip to content

Commit

Permalink
updating NoFieldIsEmpty documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterEFinch committed Jun 5, 2024
1 parent 2192fa8 commit 43a8b0a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion assert/assertion_format.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions assert/assertion_forward.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion assert/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,9 @@ func buildErrorChainString(err error) string {
return chain
}

// NoFieldIsEmpty asserts that object, which must be a struct or eventually reference to one, has no empty exported fields.
// NoFieldIsEmpty asserts that object, which must be a struct or eventually
// reference to one, has no exported field with a value that is empty (following
// the definition of empty used in [Empty]).
func NoFieldIsEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {
if reflect.TypeOf(object).Kind() == reflect.Ptr {
return NoFieldIsEmpty(t, reflect.ValueOf(object).Elem().Interface(), msgAndArgs)
Expand Down
8 changes: 6 additions & 2 deletions require/require.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions require/require_forward.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43a8b0a

Please sign in to comment.