(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestIndexKey(t *testing.T) { |
| 84 | for uid := range 1001 { |
| 85 | sattr := fmt.Sprintf("attr:%d", uid) |
| 86 | sterm := fmt.Sprintf("term:%d", uid) |
| 87 | |
| 88 | key := IndexKey(AttrInRootNamespace(sattr), sterm) |
| 89 | pk, err := Parse(key) |
| 90 | require.NoError(t, err) |
| 91 | |
| 92 | require.True(t, pk.IsIndex()) |
| 93 | require.Equal(t, sattr, ParseAttr(pk.Attr)) |
| 94 | require.Equal(t, sterm, pk.Term) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func TestIndexKeyWithStartUid(t *testing.T) { |
| 99 | startUid := uint64(math.MaxUint64) |
nothing calls this directly
no test coverage detected