Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Jan 17, 2025
1 parent bcf5d23 commit d6d49f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assert_cmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (a *testingA) CmpProto(t *testing.T, testNames ...string) *testingA {
return a
}

// CmpAllowUnexported method gets the differences between two objects by go-cmp.Diff with cmp.AllowUnexported option.
// CmpAllowUnexported method gets the differences between two structs by go-cmp.Diff with cmp.AllowUnexported option.
// It accepts unexported methods to compare instead panic. If you would like to ignore unexported methods,
// then you can use CmpIgnoreUnexported method.
func (a *testingA) CmpAllowUnexported(t *testing.T, testNames ...string) *testingA {
Expand All @@ -75,8 +75,8 @@ func (a *testingA) CmpAllowUnexported(t *testing.T, testNames ...string) *testin
return a
}

// CmpIgnoreUnexported method gets the differences between two objects by go-cmp.Diff with cmpopts.IgnoreUnexported option.
// It ignores unexported methods to compare structs instead panic. If you would like to compare also unexported methods,
// CmpIgnoreUnexported method gets the differences between two structs by go-cmp.Diff with cmpopts.IgnoreUnexported option.
// It ignores unexported methods to compare instead panic. If you would like to compare with also unexported methods,
// then you can use CmpAllowUnexported method.
func (a *testingA) CmpIgnoreUnexported(t *testing.T, testNames ...string) *testingA {
invalidCallForSame(a)
Expand Down

0 comments on commit d6d49f2

Please sign in to comment.