MCPcopy Create free account
hub / github.com/chen3feng/toft / SetUp

Method SetUp

base/string/number_test.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 static const char kDoubleString[];
239private:
240 void SetUp()
241 {
242 int n;
243 sscanf(kIntString, "%d", &n); // NOLINT(runtime/printf)
244 ASSERT_EQ(kInt, n);
245 ASSERT_TRUE(StringToNumber(kIntString, &n));
246 ASSERT_EQ(kInt, n);
247 }
248};
249
250const int StringNumberPerformanceTest::kInt;

Callers

nothing calls this directly

Calls 1

StringToNumberFunction · 0.70

Tested by

no test coverage detected