Lines Matching refs:guids

40  * guids that get generated make sense.  To make sure that the guid
46 * While guids really only need to be unique, here we actually enforce that
47 * they are increasing (as defined by reverse_guid_128_cmp()). If guids are
54 guid_128_t guids[2];
61 * Generating multiple guids within a microsecond should keep
66 guid_128_generate(guids[1]);
71 guid_128_generate(guids[this]);
73 test_assert(reverse_guid_128_cmp(guids[prev], guids[this]) < 0);
74 test_assert(guid_128_has_sane_nsecs(guids[this]));
79 * If the current time changes by +1 usec, so should the guids.
87 guid_128_generate(guids[this]);
89 test_assert(reverse_guid_128_cmp(guids[prev], guids[this]) < 0);
90 test_assert(guid_128_has_sane_nsecs(guids[this]));
95 * If the current time changes by +1 sec, so should the guids.
103 guid_128_generate(guids[this]);
105 test_assert(reverse_guid_128_cmp(guids[prev], guids[this]) < 0);
106 test_assert(guid_128_has_sane_nsecs(guids[this]));
111 * Requesting enough guids should increment the seconds but always
114 * (Set a time that leaves us 1000 guids before seconds overflow and
115 * then ask for 2500 guids.)
123 guid_128_generate(guids[this]);
124 test_assert(reverse_guid_128_cmp(guids[prev], guids[this]) < 0);
125 test_assert(guid_128_has_sane_nsecs(guids[this]));
130 * When ahead by 1500 guids (see previous test), +1 usec shouldn't
135 guid_128_generate(guids[0]);
136 test_assert(reverse_guid_128_cmp(guids[1], guids[0]) < 0);
137 test_assert(guid_128_has_sane_nsecs(guids[0]));
142 guid_128_generate(guids[1]);
143 test_assert(reverse_guid_128_cmp(guids[0], guids[1]) < 0);
144 test_assert(guid_128_has_sane_nsecs(guids[1]));
147 * Time going backwards by 1 usec should have no effect on guids.
151 guid_128_generate(guids[0]);
152 test_assert(reverse_guid_128_cmp(guids[1], guids[0]) < 0);
153 test_assert(guid_128_has_sane_nsecs(guids[0]));
157 * Time going backwards by 1 sec should have no effect on guids.
161 guid_128_generate(guids[1]);
162 test_assert(reverse_guid_128_cmp(guids[0], guids[1]) < 0);
163 test_assert(guid_128_has_sane_nsecs(guids[1]));