reach

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(verbose bool) (ok bool)

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.

func TestMain

func TestMain(m *testing.M)

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)
}

Types

This section is empty.

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL