I would just copy it into a separate file in your own project first--only
to avoid confusing readers who would otherwise see the "testing" package
used in production code.
I mean, its such a simple thing that of course, sure, why not? :)
type MapFS map[string]*MapFile
// A MapFile describes a single file in a [MapFS].
type MapFile struct {
Data []byte // file content
Mode fs.FileMode // fs.FileInfo.Mode
ModTime time.Time // fs.FileInfo.ModTime
Sys any // fs.FileInfo.Sys
}