From 9d87d658bafda70d9cdb02bdce2269f33f49f51c Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Fri, 19 Nov 2021 14:26:51 -0800 Subject: [PATCH] testing: add a stub for CoverMode This allows the strings package test to compile. --- src/testing/testing.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/testing/testing.go b/src/testing/testing.go index bd829dc8..4f12b3d1 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -302,6 +302,13 @@ func Verbose() bool { return flagVerbose } +// CoverMode reports what the test coverage mode is set to. +// +// Test coverage is not supported; this returns the empty string. +func CoverMode() string { + return "" +} + // AllocsPerRun returns the average number of allocations during calls to f. // Although the return value has type float64, it will always be an integral // value.