circle-ci
170 of 170 new or added lines in 15 files covered. (100.0%)
3852 of 7020 relevant lines covered (54.87%)
27.81 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 {
|
452✔ |
|
ms := m.c.IdentityTraitsSchemas() |
452✔ |
|
var ss schema.Schemas
|
452✔ |
|
|
452✔ |
|
for i := range ms { |
1,187✔ |
|
uri, err := url.Parse(ms[i]["url"])
|
735✔ |
|
if err != nil { |
735✔ |
|
m.l.Fatalf("Could not parse url %s for schema %s", ms[i]["url"], ms[i]["id"]) |
× |
|
} |
× |
18 |
|
|
|
ss = append(ss, schema.Schema{
|
735✔ |
|
ID: ms[i]["id"],
|
735✔ |
|
URL: uri, |
735✔ |
|
RawURL: ms[i]["url"],
|
735✔ |
|
}) |
735✔ |
24 |
} |
|
25 |
|
|
|
return ss
|
452✔ |
27 |
} |