• Home
  • Raw
  • Download

Lines Matching refs:ASSERT_EQ

36   ASSERT_EQ("foo", std::string(strip(str)));  in TEST()
41 ASSERT_EQ(nullptr, tokenize(nullptr, nullptr)); in TEST()
42 ASSERT_EQ(nullptr, tokenize(nullptr, "")); in TEST()
43 ASSERT_EQ(nullptr, tokenize(nullptr, ",")); in TEST()
46 ASSERT_EQ(nullptr, tokenize(&p, nullptr)); in TEST()
53 ASSERT_EQ(str, tokenize(&p, nullptr)); in TEST()
54 ASSERT_EQ(nullptr, p); in TEST()
55 ASSERT_EQ(str, std::string("a,b,c")); in TEST()
58 ASSERT_EQ(str, tokenize(&p, "")); in TEST()
59 ASSERT_EQ(nullptr, p); in TEST()
60 ASSERT_EQ(str, std::string("a,b,c")); in TEST()
67 ASSERT_EQ("a", std::string(tokenize(&p, ","))); in TEST()
68 ASSERT_EQ("b", std::string(tokenize(&p, ","))); in TEST()
69 ASSERT_EQ("c", std::string(tokenize(&p, ","))); in TEST()
70 ASSERT_EQ(nullptr, p); in TEST()
71 ASSERT_EQ(nullptr, tokenize(&p, ",")); in TEST()
78 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
79 ASSERT_EQ(nullptr, p); in TEST()
80 ASSERT_EQ(nullptr, tokenize(&p, ",")); in TEST()
87 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
88 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
89 ASSERT_EQ("a", std::string(tokenize(&p, ","))); in TEST()
90 ASSERT_EQ("b", std::string(tokenize(&p, ","))); in TEST()
91 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
92 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
93 ASSERT_EQ("c", std::string(tokenize(&p, ","))); in TEST()
94 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
95 ASSERT_EQ("", std::string(tokenize(&p, ","))); in TEST()
96 ASSERT_EQ(nullptr, p); in TEST()
97 ASSERT_EQ(nullptr, tokenize(&p, ",")); in TEST()
313 ASSERT_EQ(0, parse_size(&size, "42")); in TEST()
314 ASSERT_EQ(42U, size); in TEST()
316 ASSERT_EQ(0, parse_size(&size, "16K")); in TEST()
317 ASSERT_EQ(16384U, size); in TEST()
319 ASSERT_EQ(0, parse_size(&size, "1M")); in TEST()
320 ASSERT_EQ(1024U * 1024, size); in TEST()
323 ASSERT_EQ(0, parse_size(&size, "3G")); in TEST()
324 ASSERT_EQ(3U, size / gigabyte); in TEST()
325 ASSERT_EQ(0U, size % gigabyte); in TEST()
327 ASSERT_EQ(0, parse_size(&size, "4294967294")); in TEST()
328 ASSERT_EQ(3U, size / gigabyte); in TEST()
329 ASSERT_EQ(gigabyte - 2, size % gigabyte); in TEST()
333 ASSERT_EQ(0, parse_size(&size, "9E")); in TEST()
334 ASSERT_EQ(9U, size / exabyte); in TEST()
335 ASSERT_EQ(0U, size % exabyte); in TEST()
337 ASSERT_EQ(0, parse_size(&size, "15E")); in TEST()
338 ASSERT_EQ(15U, size / exabyte); in TEST()
339 ASSERT_EQ(0U, size % exabyte); in TEST()
341 ASSERT_EQ(0, parse_size(&size, "18446744073709551614")); in TEST()
342 ASSERT_EQ(15U, size / exabyte); in TEST()
343 ASSERT_EQ(exabyte - 2, size % exabyte); in TEST()
345 ASSERT_EQ(-ERANGE, parse_size(&size, "16E")); in TEST()
346 ASSERT_EQ(-ERANGE, parse_size(&size, "19E")); in TEST()
347 ASSERT_EQ(-EINVAL, parse_size(&size, "7GTPE")); in TEST()
349 ASSERT_EQ(-ERANGE, parse_size(&size, "5G")); in TEST()
350 ASSERT_EQ(-ERANGE, parse_size(&size, "9G")); in TEST()
351 ASSERT_EQ(-ERANGE, parse_size(&size, "9E")); in TEST()
352 ASSERT_EQ(-ERANGE, parse_size(&size, "7GTPE")); in TEST()
355 ASSERT_EQ(-EINVAL, parse_size(&size, "")); in TEST()
356 ASSERT_EQ(-EINVAL, parse_size(&size, "14u")); in TEST()
357 ASSERT_EQ(-EINVAL, parse_size(&size, "14.2G")); in TEST()
358 ASSERT_EQ(-EINVAL, parse_size(&size, "-1G")); in TEST()
359 ASSERT_EQ(-EINVAL, parse_size(&size, "; /bin/rm -- ")); in TEST()