Improved testing

This commit is contained in:
2017-10-02 00:01:01 +02:00
parent b45af0eaf9
commit 1101dafc90
4 changed files with 8 additions and 4 deletions

View File

@ -24,6 +24,8 @@ func TestRoutes(t *testing.T) {
if status := responseRecorder.Code; status != http.StatusOK {
t.Errorf("%s | Wrong status code | %v instead of %v", example, status, http.StatusOK)
} else {
t.Logf("%s | Correct status code | %v == %v", example, status, http.StatusOK)
}
}
}