SaturdayMP Show 87: Creating PostCast (Part 9 – Figuring Out Testing in Go)
https://youtu.be/ISXbVjTKN4c
In this episode Omar and myself figure out how to add tests in Go. We try the built-in Go testing framework but then settle on using Testify. Testify allows writing assertions like other testing frameworks we are used to. We also experiment with different ways to do mocking Go and try to figure out what the Go error object is.
*PostCast is just a place holder name and might change. The goofy PostCast placeholder image was generated by ChatGPT and will likely change.
Go Testing:
https://go.dev/doc/tutorial/add-a-test
Testify:
https://github.com/stretchr/testify
Omar:
https://www.ashour.ca/
SaturdayMP:
https://saturdaymp.com/
PostCast Playlist:
https://www.youtube.com/playlist?list=PLYPcrKbLqwuvKQ97klk3bzyUPI6j154WC
Have a question you want answered in a future video? A challenging or interesting problem you need you want to see solved? Constructive feedback? Then comment, DM me, or send an email to [email protected].
Found this video useful? Then help others find it by liking, subscribing, sharing, and/or sponsoring:
https://github.com/sponsors/saturdaymp
Thanks for watching!
#saturdaymp #saturdaympshow #postcast #unittesting #mocking #golang