func UnignorePackage(skip ...int) bool {
	if pkg := getPackage(skip...); pkg != "" {
		delete(ignorePkg, pkg)
		return true
	}
	return false
}
UnignorePackage cancels a previous use of IgnorePackage, so the
calling package is no longer ignored. Only intended to be used in
go-testdeep internal tests.
package trace
import (
	"fmt"
	"go/build"
	"os"
	"path/filepath"
	"runtime"
	"strings"
)
var (
	ignorePkg = map[string]struct{}{}
	goPaths   []string
	goModDir  string
)
func getPackage(skip ...int) string {
	sk := 2
	if len(skip) > 0 {
		sk += skip[0]
	}
	pc, _, _, ok := runtime.Caller(sk)
	if ok {
		fn := runtime.FuncForPC(pc)
		if fn != nil {
			pkg, _ := SplitPackageFunc(fn.Name())
			return pkg
		}
	}
	return ""
}
func IgnorePackage(skip ...int) bool {
	if pkg := getPackage(skip...); pkg != "" {
		ignorePkg[pkg] = struct{}{}
		return true
	}
	return false
}