1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-24 05:17:10 +02:00

Unused type

This commit is contained in:
frederikhors 2020-01-29 14:47:32 +01:00
parent 4d85b23e8a
commit 6aae44ae44

View File

@ -234,21 +234,6 @@ func newMockAPIRequest(postKeyValues ...string) *http.Request {
return req
}
type mockRenderer struct {
expectName string
}
func (m mockRenderer) Load(names ...string) error { return nil }
func (m mockRenderer) Render(ctx context.Context, name string, data HTMLData) ([]byte, string, error) {
if len(m.expectName) != 0 && m.expectName != name {
panic(fmt.Sprintf("want template name: %s, but got: %s", m.expectName, name))
}
b, err := json.Marshal(data)
return b, "application/json", err
}
type mockEmailRenderer struct{}
func (m mockEmailRenderer) Load(names ...string) error { return nil }