In this live episode Omar and myself write and unit test the code for saving the Slack token to the keyring. We abandon using Testify mocks and instead add an in-memory setting for our credential manager. We also have a good discussion about test-driven development (TDD).
*PostCast is just a place holder name and might change. The goofy PostCast placeholder image was generated by ChatGPT and will likely change.
Zalando Go Keyring:
https://github.com/zalando/go-keyring
Mocking with Testify:
https://github.com/stretchr/testify
TDD:
https://en.wikipedia.org/wiki/Test-driven_development
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 want to see solved? Constructive feedback? Then comment, DM, or send an email to ask@saturdaymp.com.
Found this video useful? Then help others find it by liking, subscribing, sharing, and/or sponsoring:
https://github.com/sponsors/saturdaymp
Thanks for watching!