Testing

This section covers testing gos abstractions. Testing will ensure code is working as expected, without brute trials of code. gos generates the test functions for global variables, handlers, methods, templates and data types.

Test generation

On each trans-pilation, gos will check the designated test file for each generated package. If an abstraction’s test was not found, it will be appended to the test file. Changes made to test files will not be over-written during trans-pilation as well.

Testing abstractions

The next pages will cover writing unit tests for your abstractions.