Type of session: 50 min tutorial
Writing testable code in GO
This tutorial will go through the basics on how to write tests in GO and how to write GO code that is testable. We will use an small app to give a clear example on how to test the code. We will cover the build-in test library and the tools to look at the test coverage for your code.
Test driven development is the process of writing tests first for the features you are implementing. In GO if you try to write tests after writing the main code there is a big possibility of getting into a nightmare. The only way you could write tests for your code is if you write code that you can test. This talk with go throug the basics on testing and give a clear example on how to write code that you can test.
This sounds like an interesting talk! Yea for testing talks :) I understand that English isn't your first language, so first here are my grammar/ language clarity suggestions:
It's easier to just copy-paste and highly my suggestions so (notice I've added commas too):
This tutorial will go through the basics on how to write tests in GO**,** and how to write GO code that is testable. We will use an small app to give a clear example on how to test the code. We will cover the _built-in_ test library**,** and the tools _you can use_ to look at the test coverage for your code.
Test driven development is the process of writing tests first for the features you are implementing. In GO**,** if you try to write tests after writing the main code**,** there is a big possibility of getting into a nightmare. The only way you could write tests for your code is if you write code that you can test. This talk _will_ go _through_ the basics on testing**,** and give a clear example on how to write code that you can test.
So general suggestions.