Discover Packages
github.com/tsavola/reach
package
module
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Apr 11, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package reach is used to check that code annotated using the cover
subpackage is covered.
Check function should be called after the test suite is run, e.g. using
TestMain. go test should be run with -tags=reach.
Check all coverage assertions in the Go package that is located in the
current working directory. If invoked by go test, the package being tested
is checked.
TestMain can be used to implement a TestMain function which calls Check.
Example:
package example_test
import "github.com/tsavola/reach"
func TestMain(m *testing.M) {
reach.TestMain(m)
}
Source Files
¶
Directories
¶
Package cover is used to assert that code locations and variable values are covered by tests.
Package cover is used to assert that code locations and variable values are covered by tests.
Click to show internal directories.
Click to hide internal directories.