Lines Matching refs:expect
1196 static int test_type(enum event_type type, enum event_type expect) in test_type() argument
1198 if (type != expect) { in test_type()
1200 expect, type); in test_type()
1207 enum event_type expect, const char *expect_tok) in test_type_token() argument
1209 if (type != expect) { in test_type_token()
1211 expect, type); in test_type_token()
1223 static int __read_expect_type(enum event_type expect, char **tok, int newline_ok) in __read_expect_type() argument
1231 return test_type(type, expect); in __read_expect_type()
1234 static int read_expect_type(enum event_type expect, char **tok) in read_expect_type() argument
1236 return __read_expect_type(expect, tok, 1); in read_expect_type()
1239 static int __read_expected(enum event_type expect, const char *str, in __read_expected() argument
1251 ret = test_type_token(type, token, expect, str); in __read_expected()
1258 static int read_expected(enum event_type expect, const char *str) in read_expected() argument
1260 return __read_expected(expect, str, 1); in read_expected()
1263 static int read_expected_item(enum event_type expect, const char *str) in read_expected_item() argument
1265 return __read_expected(expect, str, 0); in read_expected_item()