func (f *File) ReadT(t testing.TB) {
	t.Helper()
	if err := f.Read(); err != nil {
		t.Fatal(err)
	}
}
ReadT wraps the Read method for easier use in tests. It calls t.Fatal(err) if Read returns an
error.
package jsonschematestsuite
import (
	"encoding/json"
	"fmt"
	"os"
	"path/filepath"
	"strings"
	"testing"
	"github.com/sourcegraph/go-jsonschema/jsonschema"
)
type File struct {
	Name string `json:"-"`
	path string
	Groups []*Group  
}
func (f *File) Read() error {
	f2, err := os.Open(f.path)
	if err != nil {
		return err
	}
	defer f2.Close()
	if err := json.NewDecoder(f2).Decode(&f.Groups); err != nil {
		return err
	}
	for _, g := range f.Groups {
		if err := json.Unmarshal(g.RawSchema, &g.Schema); err != nil {
			return err
		}
	}
	return nil
}