How to mock in your Go tests - Golang Tutorial

preview_player
Показать описание
Since the most asked feature this week was mocking, here I show you how you can take advantage of structs and interfaces to mock any artifacts you might be using.

Hope you liked the video! If you did, please like and subscribe to get new videos as soon as I upload them!

Fede.
Рекомендации по теме
Комментарии
Автор

Thanks a lot for the video. But, as someone rightly pointed out I would want to see how I can mock string_utils function inside IsPalindrome() because in reality we will be writing test case for IsPalindrome() function which is our implementation. So, why bother mocking that? We have to mock it's dependencies right?

ramdittakavi
join shbcf.ru