How to write unit tests in the Go programming language?

Why should you write tests? Programming is not an easy task, write test is neither, but part of the software development process is writing tests. Testing our code is a good way to ensure quality and improve reliability, Introducing Go, 2016. When we talk about testing, we’re implicitly referring to automated testing, it’s the practice of writing small programs that check that code behaves as expected for defined entries, The Go Programming Language, 2016]book-the-go-programming-language....

September 1, 2021 · 4 min · Jucelio Floresta