func TestWriteOnceSet(t *testing.T) { … } func TestWriteOnceCancel(t *testing.T) { … } func TestWriteOnceInitial(t *testing.T) { … } func goGetExpectNotYet(t *testing.T, wr WriteOnce, gots chan interface{ … } func goGetAndExpect(t *testing.T, wr WriteOnce, gots chan interface{ … } func expectGotValue(t *testing.T, gots <-chan interface{ … }