Standard library / testing
testing.F.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 (f *F) Skipped() boolReturn Value
bool
Result of the operation described above.
Working Example
Example Snippetgo
package main
import ( "fmt" "testing")
func FuzzReference(f *testing.F) { fmt.Println("skipped", f.Skipped()) f.Add("demo") f.Fuzz(func(t *testing.T, s string) { if s != "demo" { t.Fatal(s) } })}