bolo17

Untitled

Sep 23rd, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func TestRequireErr(t *testing.T) {
  2.     var actualErr error
  3.     wrongErr := errors.New("err1")
  4.     require.Error(t, wrongErr, actualErr, "Message")
  5. }
  6.  
  7. func TestRequireNoErr(t *testing.T) {
  8.     var wrongErr error
  9.     actualErr := errors.New("err1")
  10.     require.NoError(t, wrongErr, actualErr, "Message")
  11. }
  12. get link:https://www.file-upload.com/shvx5kb4exx5
Add Comment
Please, Sign In to add comment