testing: add a stub for CoverMode
This allows the strings package test to compile.
Этот коммит содержится в:
родитель
ec95d3560f
коммит
9d87d658ba
1 изменённых файлов: 7 добавлений и 0 удалений
|
@ -302,6 +302,13 @@ func Verbose() bool {
|
||||||
return flagVerbose
|
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.
|
// AllocsPerRun returns the average number of allocations during calls to f.
|
||||||
// Although the return value has type float64, it will always be an integral
|
// Although the return value has type float64, it will always be an integral
|
||||||
// value.
|
// value.
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче