Searched refs:TF_TString_SmallCapacity (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/core/platform/ |
D | ctstring_test.cc | 32 EXPECT_GT(::strlen(kLongString), TF_TString_SmallCapacity); in TEST() 83 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetCapacity(&s20)); in TEST() 91 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetCapacity(&s21)); in TEST() 99 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetCapacity(&s22)); in TEST() 112 size_t s = TF_TString_SmallCapacity - 1; in TEST() 114 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetCapacity(&s30)); in TEST() 122 EXPECT_GT(TF_TString_SmallCapacity, TF_TString_GetSize(&s30)); in TEST() 123 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetCapacity(&s30)); in TEST() 131 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetSize(&s30)); in TEST() 132 EXPECT_EQ(TF_TString_SmallCapacity, TF_TString_GetCapacity(&s30)); in TEST() [all …]
|
D | ctstring_internal.h | 113 TF_TString_SmallCapacity = enumerator 120 char str[TF_TString_SmallCapacity + sizeof(/* null delim */ char)]; 201 return TF_TString_SmallCapacity; in TF_TString_GetCapacity() 236 if (new_size <= TF_TString_SmallCapacity) { in TF_TString_ResizeUninitialized() 311 if (new_cap <= TF_TString_SmallCapacity) { in TF_TString_Reserve()
|
D | tstring_test.cc | 48 EXPECT_EQ(TF_TString_SmallCapacity, s10.capacity()); in TEST() 57 EXPECT_LT(TF_TString_SmallCapacity, s12.capacity()); in TEST() 135 s32.resize(TF_TString_SmallCapacity * 2); in TEST() 137 EXPECT_EQ(absl::string_view(kLongString, TF_TString_SmallCapacity * 2), s32); in TEST() 139 EXPECT_EQ(TF_TString_SmallCapacity * 2, s32.size()); in TEST()
|