Improve error behaviour of package coverage.

This commit is contained in:
Katharine Berry
2018-08-31 17:06:20 -07:00
parent facce197b1
commit 13d1961d2b
2 changed files with 12 additions and 6 deletions

View File

@@ -18,9 +18,9 @@ limitations under the License.
package coverage
// InitCoverage is a no-op when not running with coverage.
// InitCoverage is illegal when not running with coverage.
func InitCoverage(name string) {
panic("Called InitCoverage when not built with coverage instrumentation.")
}
// FlushCoverage is a no-op when not running with coverage.