func MustTFromContext(ctx context.Context) *testing.T {
	t, ok := TFromContext(ctx)
	if !ok {
		panic("*testing.T not present in the context")
	}
	return t
}
MustTFromContext returns the *testing.T from the context, and panics if it was not saved in the context.
package test
import (
	"context"
	"sync/atomic"
	"testing"
)
type tbKey struct{}
func ContextWithTB(ctx context.Context, tb testing.TB) context.Context {
	return context.WithValue(ctx, tbKey{}, tb)
}
func TBFromContext(ctx context.Context) (testing.TB, bool) {
	tb, ok := ctx.Value(tbKey{}).(testing.TB)
	if !ok {
		return nil, false
	}
	return tb, true
}
func MustTBFromContext(ctx context.Context) testing.TB {
	tb, ok := TBFromContext(ctx)
	if !ok {
		panic("testing.TB not present in the context")
	}
	return tb
}
func TFromContext(ctx context.Context) (*testing.T, bool) {
	t, ok := ctx.Value(tbKey{}).(*testing.T)
	if !ok {
		return nil, false
	}
	return t, true
}