Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 359 Bytes

recap.mdx

File metadata and controls

19 lines (13 loc) · 359 Bytes

Take away

Common mistakes

  • Use real dependency instead mock
  • Write unit test after everything done
  • Use reflect.DeepEqual instead of cmp.Diff

Tips & Tricks

  • Custom template test generator
  • Mock stdlib non interface
  • Test related with file generation
  • Utilize build tags for testing

Clean Code make unit testing easier


Thank you