🚚 Rename getter methods

This commit is contained in:
Dan Jones 2024-01-17 11:43:07 -06:00
commit ac5bbb08c0
3 changed files with 10 additions and 10 deletions

View file

@ -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])