push
circle-ci
188 of 188 new or added lines in 15 files covered. (100.0%)
3914 of 7045 relevant lines covered (55.56%)
28.05 hits per line
1 |
package driver
|
|
2 |
|
|
3 |
import (
|
|
4 |
"net/url"
|
|
5 |
|
|
6 |
"github.com/ory/kratos/schema"
|
|
7 |
) |
|
8 |
|
|
|
func (m *RegistryDefault) IdentityTraitsSchemas() schema.Schemas {
|
459✔ |
|
ms := m.c.IdentityTraitsSchemas() |
459✔ |
|
var ss schema.Schemas
|
459✔ |
|
|
459✔ |
|
for _, s := range ms { |
1,226✔ |
|
surl, err := url.Parse(s.URL) |
767✔ |
|
if err != nil { |
767✔ |
|
m.l.Fatalf("Could not parse url %s for schema %s", s.URL, s.ID)
|
× |
|
} |
× |
18 |
|
|
|
ss = append(ss, schema.Schema{
|
767✔ |
|
ID: s.ID, |
767✔ |
|
URL: surl, |
767✔ |
|
RawURL: s.URL, |
767✔ |
|
}) |
767✔ |
24 |
} |
|
25 |
|
|
|
return ss
|
459✔ |
27 |
} |