Standard library / testing
testing.T.Skipped()
Report whether the test has been marked skipped. Expected stdout: 'false\nPASS\n'. Run as a _test.go file using the Go test harness.
Formal Syntax & Structure
go syntaxgo
func (c *T) Skipped() boolReturn Value
bool
Result of the operation described above.
Working Example
Example Snippetgo
package main
import ( "fmt" "testing")
func TestReference(t *testing.T) { fmt.Println(t.Skipped()) }