MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SortedContents

Function SortedContents

tensorflow/core/lib/gtl/compactptrset_test.cc:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26typedef CompactPointerSet<const char*> StringSet;
27
28static std::vector<const char*> SortedContents(const StringSet& set) {
29 std::vector<const char*> contents(set.begin(), set.end());
30 std::sort(contents.begin(), contents.end());
31 return contents;
32}
33
34TEST(CompactPointerSetTest, Simple) {
35 // Make some aligned and some unaligned pointers.

Callers 1

TESTFunction · 0.85

Calls 3

sortFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected