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