🚚 Rename getter methods
This commit is contained in:
parent
6e7400df4d
commit
ac5bbb08c0
3 changed files with 10 additions and 10 deletions
|
|
@ -28,8 +28,8 @@ func (s *ErrorfTestSuite) TestNoWrap() {
|
|||
|
||||
exp := "42 is more than 13"
|
||||
s.Assert().Equal(exp, err.Error())
|
||||
s.Assert().Equal(exp, err.Msg())
|
||||
s.Assert().Equal(http.StatusTeapot, err.Status())
|
||||
s.Assert().Equal(exp, err.GetMsg())
|
||||
s.Assert().Equal(http.StatusTeapot, err.GetStatus())
|
||||
}
|
||||
|
||||
func (s *ErrorfTestSuite) TestWrapOne() {
|
||||
|
|
@ -45,7 +45,7 @@ func (s *ErrorfTestSuite) TestWrapOne() {
|
|||
|
||||
exp := "I'm a little teapot. Here is my handle."
|
||||
s.Assert().Equal(exp, we.Error())
|
||||
s.Assert().Equal(exp, we.Msg())
|
||||
s.Assert().Equal(exp, we.GetMsg())
|
||||
s.Assert().Same(wrapped, we.Unwrap())
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ func (s *ErrorfTestSuite) TestWrapTwo() {
|
|||
|
||||
exp := "I'm a little teapot: short and stout. Here is my handle."
|
||||
s.Assert().Equal(exp, we.Error())
|
||||
s.Assert().Equal(exp, we.Msg())
|
||||
s.Assert().Equal(exp, we.GetMsg())
|
||||
unwrapped := we.Unwrap()
|
||||
s.Assert().Len(unwrapped, 2)
|
||||
s.Assert().Same(wrappedOne, unwrapped[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue