Lines Matching defs:data
46 // Returns AssertionSuccess if |data| begins with '{' and ends with '}'.
47 testing::AssertionResult HasCurlyBraces(const std::string& data) {
48 if (data.empty()) {
49 return testing::AssertionFailure() << "data is empty";
51 if (data[0] != '{') {
52 return testing::AssertionFailure() << data << " does not start with '{'";
54 if (data[data.length() - 1] != '}') {
55 return testing::AssertionFailure() << data << " does not end with '}'";
60 // Verifies that the default region data begins with '{' and ends with '}'.
65 // Tests for region data, for example "{\"fmt\":\"%C%S\"}".
78 // Verifies that a region data value begins with '{' and end with '}', for
84 // Test all region data.