Home
last modified time | relevance | path

Searched refs:IsStructurallyValid (Results 1 – 1 of 1) sorted by relevance

/external/libprotobuf-mutator/src/
Dutf8_fix_test.cc26 bool IsStructurallyValid(const std::string& s) { in IsStructurallyValid() function in protobuf_mutator::FixUtf8StringTest
33 TEST_F(FixUtf8StringTest, IsStructurallyValid) { in TEST_F() argument
34 EXPECT_TRUE(IsStructurallyValid("")); in TEST_F()
35 EXPECT_TRUE(IsStructurallyValid("abc")); in TEST_F()
36 EXPECT_TRUE(IsStructurallyValid("\xC2\xA2")); in TEST_F()
37 EXPECT_TRUE(IsStructurallyValid("\xE2\x82\xAC")); in TEST_F()
38 EXPECT_TRUE(IsStructurallyValid("\xF0\x90\x8D\x88")); in TEST_F()
39 EXPECT_FALSE(IsStructurallyValid("\xFF\xFF\xFF\xFF")); in TEST_F()
40 EXPECT_FALSE(IsStructurallyValid("\xFF\x8F")); in TEST_F()
41 EXPECT_FALSE(IsStructurallyValid("\x3F\xBF")); in TEST_F()
[all …]