func (t *T) LogBuf() string {
	return string(reflect.ValueOf(t.T).FieldByName("output").Bytes())  
}
LogBuf is an ugly hack allowing to access internal testing.T log
buffer. Keep cool, it is only used for internal unit tests.
package tdutil
import (
	"reflect"
	"testing"
)
type T struct {
	testing.T
	name string
}
type tFailedNow struct{}
func NewT(name string) *T {
	return &T{name: name}
}
func (t *T) Run(name string, f func(*testing.T)) bool {
	t.CatchFailNow(func() { f(&t.T) })
	return !t.Failed()
}
func (t *T) Name() string {
	return t.name
}