Home
last modified time | relevance | path

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

/bootable/recovery/tests/component/
Dedify_test.cpp26 int error_count = 0; in expect() local
27 EXPECT_EQ(0, ParseString(expr_str, &e, &error_count)); in expect()
28 EXPECT_EQ(0, error_count); in expect()
154 int error_count = 0; in TEST_F() local
155 EXPECT_EQ(1, ParseString(script1, &expr, &error_count)); in TEST_F()
156 EXPECT_EQ(1, error_count); in TEST_F()
159 error_count = 0; in TEST_F()
160 EXPECT_EQ(1, ParseString(script2, &expr, &error_count)); in TEST_F()
161 EXPECT_EQ(1, error_count); in TEST_F()
164 error_count = 0; in TEST_F()
[all …]
Dupdater_test.cpp65 int error_count = 0; in expect() local
66 ASSERT_EQ(0, ParseString(expr_str, &e, &error_count)); in expect()
67 ASSERT_EQ(0, error_count); in expect()
/bootable/recovery/edify/
Dparser.yy35 void yyerror(std::unique_ptr<Expr>* root, int* error_count, const char* s);
36 int yyparse(std::unique_ptr<Expr>* root, int* error_count);
74 %parse-param {int* error_count}
110 yyerror(root, error_count, msg.c_str());
133 void yyerror(std::unique_ptr<Expr>* root, int* error_count, const char* s) {
138 ++*error_count;
141 int ParseString(const std::string& str, std::unique_ptr<Expr>* root, int* error_count) {
143 return yyparse(root, error_count);
/bootable/recovery/updater/
Dupdater.cpp135 int error_count = 0; in main() local
136 int error = ParseString(script, &root, &error_count); in main()
137 if (error != 0 || error_count > 0) { in main()
138 LOG(ERROR) << error_count << " parse errors"; in main()
/bootable/recovery/edify/include/edify/
Dexpr.h156 int ParseString(const std::string& str, std::unique_ptr<Expr>* root, int* error_count);