Login
From:
Alex Pliutau Blog
(Uncensored)
subscribe
How to mock exec.Command in Go
https://pliutau.com/how_to_mock_exec_command/
links
backlinks
Roast topics
Find topics
Find it!
In some of my projects we have code that needs to run external executables, and it’s very difficult to test them, especially when your function is based on some kind of stdout parcing.