// TestUint32ForNonUniqueIdOnDifferentServerIDs tests Uint32() serially for any duplicate ids generated
// using different serverIDs upto the maximum 1024.
TestUint32ForNonUniqueIdOnDifferentServerIDs tests Uint32() serially for any duplicate ids generated
using different serverIDs upto the maximum 1024.
// TestUint32ForNonUniqueIdOnDifferentServerIDs tests Uint32 () serially for any duplicate ids generated // using different serverIDs upto the maximum 1024 .
func TestUint32ForNonUniqueIdOnDifferentServerIDs(t *testing.T) {
	t.Parallel()
	var ids []uint32
	for c := uint32(1); c < 1025; c++ {
		id := Uint32(1, 0, &DefaultUint32Config)
		for _, v := range ids {
			if v == id {
				t.Error("Duplicate Id found with serverID:", c, "id:", id)
				return
			}
		}
		ids = append(ids, id)
	}
}
func TestUint32ForNonUniqueIdOnDifferentServerIDs ( t * testing . T ) { t . Parallel ( ) var ids [ ] uint32 for c := uint32 ( 1 ) ; c < 1025 ; c ++ { id := Uint32 ( 1 , 0 , & DefaultUint32Config ) for _ , v := range ids { if v == id { t . Error ( " " , c , " " , id ) return } } ids = append ( ids , id ) } }
TestUint32ForNonUniqueIdOnDifferentServerIDs tests Uint32() serially for any duplicate ids generated
using different serverIDs upto the maximum 1024.
TestUint32ForNonUniqueIdOnDifferentServerIDs tests Uint32 () serially for any duplicate ids generated using different serverIDs upto the maximum 1024 .