var tests … func Test(t *testing.T) { … } type reqsMap … func (r reqsMap) Max(_, v1, v2 string) string { … } func (r reqsMap) Upgrade(m module.Version) (module.Version, error) { … } func (r reqsMap) Previous(m module.Version) (module.Version, error) { … } func (r reqsMap) Required(m module.Version) ([]module.Version, error) { … }