Testing in Golang with Visual Studio Code is a charm.
The whole video is actually created to see how you can get a real test coverage with a picture. With green rows for the tested lines and red rows for the non-tested ones.
0:28 - the main() function, SimpleFoo(), SimpleBar()
4:10 - writing tests the old way
7:31 - writing tests on a bit better way, with a loop!
14:24 - running the tests
17:00 - getting a beautiful picture of the test coverage
The code is available in the article here:
https://www.vitoshacademy.com/go-defi...