(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestSchemaKey(t *testing.T) { |
| 188 | for uid := range 1001 { |
| 189 | sattr := fmt.Sprintf("attr:%d", uid) |
| 190 | |
| 191 | key := SchemaKey(AttrInRootNamespace(sattr)) |
| 192 | pk, err := Parse(key) |
| 193 | require.NoError(t, err) |
| 194 | |
| 195 | require.True(t, pk.IsSchema()) |
| 196 | require.Equal(t, sattr, ParseAttr(pk.Attr)) |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | func TestTypeKey(t *testing.T) { |
| 201 | for uid := range 1001 { |
nothing calls this directly
no test coverage detected