I love how simple testing is in Go - Go / Golang Testing Tutorial

3 years ago
111

🎨 Artist/Thumbnail Creator: https://twitter.com/bonecloset|https://www.patreon.com/bonecloset
🎥 My Gear: https://kit.co/dfeury
🎓 Mentoring: https://forms.gle/SVrDdnz8XDmUYBwe9

Its not uncommon to change code you've already written for various reasons. The problem is we tend to break it when we do that. So what do you do? You write tests!

The go standard library has a testing package built into it, which works surprisingly well. I get you up to speed on how to write a basic test and a table drive test to back up any code changes you may make to your existing code.

### WANT TO SUPPORT THE CHANNEL? ###
💰 Patreon: https://www.patreon.com/donaldfeury
💳 Paypal: https://www.paypal.me/feurious
🛍️ Amazon: https://amzn.to/3pCNgzJ
💸 Crypto: https://cointr.ee/donaldfeury

### SOCIAL PLATFORMS ###
🎦 Twitch: https://twitch.tv/dfeury
🗨️ Discord: https://discord.gg/86gqHY5
🐦 Twitter: https://twitter.com/FeuryDonald

### VIDEO PLATFORMS ###
📽️ LBRY: https://lbry.tv/$/invite/@dfeury:5
🎥 Odysee: https://odysee.com/$/invite/@dfeury:5

### OTHER THINGS ###
📁 GitLab: https://gitlab.com/dak425

### SOFTWARE I USE ###
🌐 Brave Browser - https://brave.com/
🎞 ffmpeg: https://ffmpeg.org/
📽️ Open Broadcaster Software: https://obsproject.com/
🎨 GIMP: https://www.gimp.org/
📙 Neovim: https://neovim.io/
🗒️ Doom Emacs: https://github.com/hlissner/doom-emacs

Thank ya'll for your time and support!

#golang #go #testing #tests

Loading comments...