func Test_newReady(t *testing.T) { … } func Test_newReadySetIdempotent(t *testing.T) { … } // Test_newReadyRacy executes all the possible transitions randomly. // It must run with the race detector enabled. func Test_newReadyRacy(t *testing.T) { … } func Test_newReadyStop(t *testing.T) { … } func Test_newReadyCheck(t *testing.T) { … } func Test_newReadyCancelPending(t *testing.T) { … }