Let's Go › Testing
Previous · Contents · Next
Chapter 13.

Testing

And so we finally come to the topic of testing.

Like structuring and organizing your application code, there’s no single ‘right’ way to structure and organize your tests in Go. But there are some conventions, patterns and good-practices that you can follow.

In this section we’re going to add tests for a selection of the code in our application, with the goal of demonstrating the general syntax for creating tests and illustrating some patterns that you can reuse in a wide-variety of applications.

You’ll learn: