(t *testing.T)
| 151 | } |
| 152 | |
| 153 | func TestCountKey(t *testing.T) { |
| 154 | |
| 155 | for count := range uint32(1001) { |
| 156 | sattr := fmt.Sprintf("attr:%d", count) |
| 157 | |
| 158 | key := CountKey(AttrInRootNamespace(sattr), count, true) |
| 159 | pk, err := Parse(key) |
| 160 | require.NoError(t, err) |
| 161 | |
| 162 | require.True(t, pk.IsCountOrCountRev()) |
| 163 | require.Equal(t, sattr, ParseAttr(pk.Attr)) |
| 164 | require.Equal(t, count, pk.Count) |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | func TestCountKeyWithStartUid(t *testing.T) { |
| 169 | startUid := uint64(math.MaxUint64) |
nothing calls this directly
no test coverage detected