Testing with golang and testify – mocking – tutorial part 3
This is the last part of my testify tutorial series. In this video I am going to explain how to create and use mocks. I am also reusing what we learned in part one and two and show you how to use mocks with a real world example. I am also showing some best practices and teach you to become a fully fledged testing master.
github repo:
https://github.com/thomaslanghorst/testify-tutorial
Links:
https://github.com/vektra/mockery
https://github.com/stretchr/testify
Playlist:
https://youtube.com/playlist?list=PLNsqkiNPwf2c2kf01I_Fh_GdT0MywkD-0
❤️ SUPPORT MY CHANNEL ❤️
————————————————–
A little support goes a long way!
Buy me a coffee: https://www.buymeacoffee.com/thomaslanghorst
Become a patreon: https://www.patreon.com/thomaslanghorst
📖 5 Books to skyrocket your career 📖
—————————————————-
THE EXPLANATION VIDEO – https://youtu.be/jJKqL7AsyuM
https://amzn.to/3IahMMh – Automate the boring stuff with python
https://amzn.to/3lI4RcM – Head First Design Patterns
https://amzn.to/3Ea1KjZ – Extreme Programming Explained
https://amzn.to/3k7xhwn – Soft Skills
https://amzn.to/3KdEC8n – Clean Code
🎒 THE GEAR I USE 🎒
————————————————–
💻 Technical Gear
https://amzn.to/3Edp4h5 – Apple MacBook Pro M1
https://amzn.to/3KmaWFQ – Laptop Bag
https://amzn.to/412MNdt – Apple Magic Keyboard
https://amzn.to/3jXJ2pb – Mouse (Mac Version)
https://amzn.to/3I3umwJ – Mouse (Windows Version)
https://amzn.to/3YHVCYD – Mousepad
https://amzn.to/3YAoAtj – SSD External Hard Drive
https://amzn.to/3Sdj0e7 – SSD Protection Case
https://amzn.to/3XDdfr9 – Headphones
https://amzn.to/3lJqrgN – USB Hub
https://amzn.to/3KamAUo – HDMI to USB
🎒 Digital Nomad Essential Gear
https://amzn.to/3Sdjn8v – Bag
https://amzn.to/40ZLyf9 – Bullet Journal
https://amzn.to/41130zS – Fineliner Pens
https://amzn.to/3YNwUps – French Press / Plunger
https://amzn.to/3lI44sk – Mug
📷 YouTube Gear
https://amzn.to/3k7bTra – Apple Iphone 13 mini (My “camera”)
https://amzn.to/40ZbdEF – Tripod
https://amzn.to/3ZeMlY7 – Lightning to USB adapter for Microphones
https://amzn.to/3EdpSCD – Microphone
https://amzn.to/3Ee926A – Microphone Pop Protection
https://amzn.to/3S2AR7z – Selfie Ring Light
👋 SOCIAL MEDIA 👋
—————————————————-
@the_langhorst – INSTAGRAM
@the_langhorst – TWITTER
@the_langhorst – TIKTOK
🎶 MUSIC I USED 🎶
—————————————————-
Karl Casey @ White Bat Audio
https://www.youtube.com/watch?v=NZ4Of3lID84
Song: Erlando – Questions (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Video Link: https://youtu.be/soagi2SOFMg
‼️ Disclaimers
The links mentioned in this description may contain affiliate links. I may receive a commission for any purchases made through these links, but there won’t be any extra cost for you. I am grateful for your support, as it enables me to keep providing you with valuable content for free.
#programming #coding #golang
Comments are closed.