github.com/haraldrudell/parl@v0.4.176/pio/read-writer-tap_test.go (about) 1 /* 2 © 2023–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/) 3 ISC License 4 */ 5 6 package pio 7 8 import ( 9 "errors" 10 "testing" 11 ) 12 13 func TestReadWriterTap(t *testing.T) { 14 //t.Errorf("logging on") 15 var e = errors.New("e message") 16 var _ PIOErrorSource 17 var readsError = NewPioError(PeReads, e) 18 var err error 19 _ = 1 20 err = readsError 21 var pioe *PIOError 22 t.Logf("err: %T %T %q %t", &err, err, err.Error(), errors.As(err, &pioe)) 23 _ = err 24 }