Standard library / testing
testing.B.Skipped()
Report whether the current scope has been marked skipped. Expected process exit: 0; output contains ['PASS', 'skipped false']. Run as a _test.go file using the Go test harness.
Formal Syntax & Structure
go syntaxgo
func (c *B) Skipped() boolReturn Value
bool
Result of the operation described above.
Working Example
Example Snippetgo
package main
import ( "fmt" "testing")
func BenchmarkReference(b *testing.B) { fmt.Println("skipped", b.Skipped()) }