Go Testing: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


=Overview=
=Overview=
Go comes with a lightweight test framework that includes the [[Go_Tool#test|<code>go test</code>]] command and the <code>testing</code> package.
Go comes with a lightweight test framework that includes the [[Go_Tool#test|<code>go test</code>]] command and the <code>[[Go Package testing#Overview|testing]]</code> package.


The tests live in <code>*_test.go</code> files.
The tests live in <code>*_test.go</code> files.

Revision as of 21:23, 8 September 2023

External

Internal

Overview

Go comes with a lightweight test framework that includes the go test command and the testing package.

The tests live in *_test.go files.

Also see external test packages.

TO DEPLETE

To deplete, merge and delete this: Go Concepts - Testing