MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / TEST

Function TEST

pj_datastore/tests/sequential_uid_test.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace {
15
16TEST(SequentialUIDTest, GeneratedValuesAreValidAndIncreasing) {
17 const SequentialUID first = SequentialUID::getNext();
18 const SequentialUID second = SequentialUID::getNext();
19
20 EXPECT_TRUE(first.valid());
21 EXPECT_TRUE(second.valid());
22 EXPECT_LT(first, second);
23}
24
25TEST(SequentialUIDTest, ConcurrentCreationIsUniqueAndNeverInvalid) {
26 constexpr int kThreads = 8;

Callers

nothing calls this directly

Calls 5

reserveMethod · 0.80
validMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected