proxygen
|
#include <folly/UTF8String.h>
#include <folly/Range.h>
#include <folly/portability/GTest.h>
#include <folly/test/TestUtils.h>
Go to the source code of this file.
Functions | |
TEST (UTF8StringPiece, valid_utf8) | |
TEST (UTF8StringPiece, valid_suffix) | |
TEST (UTF8StringPiece, empty_mid_codepoint) | |
TEST (UTF8StringPiece, invalid_mid_codepoint) | |
TEST (UTF8StringPiece, valid_implicit_conversion) | |
Variables | |
const folly::StringPiece | kTestUTF8 = u8"This is \U0001F602 stuff!" |
TEST | ( | UTF8StringPiece | , |
valid_utf8 | |||
) |
Definition at line 28 of file UTF8StringTest.cpp.
References EXPECT_EQ, and kTestUTF8.
TEST | ( | UTF8StringPiece | , |
valid_suffix | |||
) |
Definition at line 35 of file UTF8StringTest.cpp.
References EXPECT_EQ, and folly::Range< Iter >::subpiece().
TEST | ( | UTF8StringPiece | , |
empty_mid_codepoint | |||
) |
Definition at line 40 of file UTF8StringTest.cpp.
References EXPECT_EQ, and folly::Range< Iter >::subpiece().
TEST | ( | UTF8StringPiece | , |
invalid_mid_codepoint | |||
) |
Definition at line 45 of file UTF8StringTest.cpp.
References EXPECT_THROW, and folly::Range< Iter >::subpiece().
TEST | ( | UTF8StringPiece | , |
valid_implicit_conversion | |||
) |
Definition at line 49 of file UTF8StringTest.cpp.
References EXPECT_EQ, and string.
const folly::StringPiece kTestUTF8 = u8"This is \U0001F602 stuff!" |
Definition at line 26 of file UTF8StringTest.cpp.
Referenced by TEST().