A hands-on guide for proper Unit Testing in Go!

preview_player
Показать описание


📝 Description
In this video, we're diving deep into the world of unit testing in Golang. Whether you're building scalable applications or robust libraries, testing is a crucial part of the development process. Today, we'll focus specifically on implementing unit tests in Go.
By the end of this video, you'll have a solid understanding of how to write and structure unit tests in Go, ensuring your code is reliable and maintainable. Plus, you'll get hands-on experience with practical examples and best practices.

⏳ Timestamps:
00:00 - Introduction
00:38 - Code we are going to test
01:42 - Restructuring the code
03:58 - Writing the Unit Tests
14:52 - Test Coverage
18:19 - Outro

👋 Hey there!
If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using emojis and paper-based animations (so have a look for that if you want to find my videos).

📨 Support and Connect!

📝 Copyright Notice

#golang #go #unittesting #unittests
Рекомендации по теме
Комментарии
Автор

I liked your way of explaining the concept very calm and not confusing

yashpal
Автор

This was a great and important video. If you could please do another on integration tests that would be REALLY amazing!

matthew
Автор

Loved the simple explanation. The video boiled down the concept of testing to me. Thank you

gimmeyes
Автор

Another great video. By the way, are you still planning on making a video on channels and optimizations for them?

adiadi
Автор

Can you share the source code? It would be helpful to follow along.

rimurusama
Автор

Testify or Ginkgo what would you recommend. Because testify does not match the way i write test in typescript, now you will say don't write typescript in the syntax of go. You will agree too that testify is not that much of useful if you are writing BDD style test cases. What's your answer testify or ginkgo. Waiting for your answer

mohit