/freebsd/contrib/googletest/googletest/include/gtest/ |
H A D | gtest-death-test.h | 173 #define ASSERT_EXIT(statement, predicate, matcher) \ argument 174 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_FATAL_FAILURE_) 178 #define EXPECT_EXIT(statement, predicate, matcher) \ argument 179 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_) 184 #define ASSERT_DEATH(statement, matcher) \ argument 185 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher) 189 #define EXPECT_DEATH(statement, matcher) \ argument 190 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher) 264 #define EXPECT_DEBUG_DEATH(statement, regex) \ argument 265 GTEST_EXECUTE_STATEMENT_(statement, regex) [all …]
|
H A D | gtest-spi.h | 149 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 153 static void Execute() { statement; } \ 167 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 171 static void Execute() { statement; } \ 217 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 229 statement; \ 234 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 245 statement; \
|
/freebsd/contrib/kyua/utils/sqlite/ |
H A D | statement.cpp | 104 struct utils::sqlite::statement::impl : utils::noncopyable { 151 sqlite::statement::statement(database& db, void* raw_stmt) : in statement() function in sqlite::statement 161 sqlite::statement::~statement(void) in ~statement() 174 sqlite::statement::step_without_results(void) in step_without_results() 189 sqlite::statement::step(void) in step() 210 sqlite::statement::column_count(void) in column_count() 222 sqlite::statement::column_name(const int index) in column_name() 237 sqlite::statement::column_type(const int index) in column_type() 251 sqlite::statement::column_id(const char* name) in column_id() 279 sqlite::statement::column_blob(const int index) in column_blob() [all …]
|
H A D | statement_test.cpp | 50 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() 63 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() 75 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() 86 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() 100 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() 112 sqlite::statement stmt = db.create_statement("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() 125 sqlite::statement stmt = db.create_statement("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() 139 sqlite::statement stmt = db.create_statement("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() 158 sqlite::statement stmt = db.create_statement("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() 178 sqlite::statement stmt = db.create_statement("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() [all …]
|
H A D | statement.hpp | 82 class statement { class 88 statement(database&, void*); 92 ~statement(void);
|
H A D | test_utils.hpp | 63 #define REQUIRE_API_ERROR(exp_api_function, statement) \ argument 66 statement; \ 67 ATF_FAIL("api_error not raised by " #statement); \
|
/freebsd/contrib/byacc/test/btyacc/ |
H A D | btyacc_demo.output | 76 49 statement : decl 83 53 statement : IF '(' $$6 expr ')' THEN $$8 statement ELSE $$9 statement 84 54 | IF '(' $$6 expr ')' THEN $$8 statement 88 56 statement : $$10 block_statement 91 58 | statement_list $$2 statement 778 statement_list : statement_list . $$2 statement (58) 908 statement_list : statement_list $$2 . statement (58) 927 statement goto 86 1012 statement : IF . '(' $$6 expr ')' THEN $$8 statement ELSE $$9 statement (53) 1013 statement : IF . '(' $$6 expr ')' THEN $$8 statement (54) [all …]
|
/freebsd/contrib/kyua/store/ |
H A D | dbtypes.hpp | 50 void bind_bool(utils::sqlite::statement&, const char*, const bool); 51 void bind_delta(utils::sqlite::statement&, const char*, 53 void bind_optional_string(utils::sqlite::statement&, const char*, 55 void bind_test_result_type(utils::sqlite::statement&, const char*, 57 void bind_timestamp(utils::sqlite::statement&, const char*, 59 bool column_bool(utils::sqlite::statement&, const char*); 60 utils::datetime::delta column_delta(utils::sqlite::statement&, const char*); 61 std::string column_optional_string(utils::sqlite::statement&, const char*); 63 utils::sqlite::statement&, const char*); 64 utils::datetime::timestamp column_timestamp(utils::sqlite::statement&,
|
H A D | dbtypes.cpp | 49 store::bind_bool(sqlite::statement& stmt, const char* field, const bool value) in bind_bool() 61 store::bind_delta(sqlite::statement& stmt, const char* field, in bind_delta() 77 store::bind_optional_string(sqlite::statement& stmt, const char* field, in bind_optional_string() 93 store::bind_test_result_type(sqlite::statement& stmt, const char* field, in bind_test_result_type() 129 store::bind_timestamp(sqlite::statement& stmt, const char* field, in bind_timestamp() 145 store::column_bool(sqlite::statement& stmt, const char* column) in column_bool() 170 store::column_delta(sqlite::statement& stmt, const char* column) in column_delta() 189 store::column_optional_string(sqlite::statement& stmt, const char* column) in column_optional_string() 212 store::column_test_result_type(sqlite::statement& stmt, const char* column) in column_test_result_type() 244 store::column_timestamp(sqlite::statement& stmt, const char* column) in column_timestamp()
|
H A D | dbtypes_test.cpp | 58 do_ok_test(void (*bind)(sqlite::statement&, const char*, Type1), in do_ok_test() argument 60 Type3 (*column)(sqlite::statement&, const char*)) in do_ok_test() argument 65 sqlite::statement insert = db.create_statement("INSERT INTO test " in do_ok_test() 70 sqlite::statement query = db.create_statement("SELECT * FROM test"); in do_ok_test() 85 Type2 (*column)(sqlite::statement&, const char*), in do_invalid_test() argument 91 sqlite::statement insert = db.create_statement("INSERT INTO test " in do_invalid_test() 96 sqlite::statement query = db.create_statement("SELECT * FROM test"); in do_invalid_test()
|
H A D | write_transaction.cpp | 81 sqlite::statement stmt = db.create_statement( in put_env_vars() 103 sqlite::statement stmt = db.create_statement( in last_rowid() 128 sqlite::statement stmt = db.create_statement( in put_metadata() 176 sqlite::statement stmt = db.create_statement( in put_file() 266 sqlite::statement stmt = _pimpl->_db.create_statement( in put_context() 296 sqlite::statement stmt = _pimpl->_db.create_statement( in put_test_program() 342 sqlite::statement stmt = _pimpl->_db.create_statement( in put_test_case() 381 sqlite::statement stmt = _pimpl->_db.create_statement( in put_test_case_file() 416 sqlite::statement stmt = _pimpl->_db.create_statement( in put_result()
|
H A D | read_transaction.cpp | 80 sqlite::statement stmt = db.create_statement( in get_env_vars() 104 sqlite::statement stmt = db.create_statement( in get_metadata() 129 sqlite::statement stmt = db.create_statement( in get_file() 165 sqlite::statement stmt = db.create_statement( in get_test_cases() 193 parse_result(sqlite::statement& stmt, const char* type_column, in parse_result() 233 sqlite::statement stmt = db.create_statement( in get_test_program() 259 sqlite::statement _stmt; 402 sqlite::statement stmt = db.create_statement( in get_test_case_file() 505 sqlite::statement stmt = _pimpl->_db.create_statement( in get_context()
|
/freebsd/contrib/googletest/googletest/include/gtest/internal/ |
H A D | gtest-death-test-internal.h | 109 static bool Create(const char* statement, Matcher<const std::string&> matcher, 178 virtual bool Create(const char* statement, in GTEST_DISABLE_MSC_WARNINGS_POP_() 186 bool Create(const char* statement, Matcher<const std::string&> matcher, 197 #define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ argument 199 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 214 #define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ argument 215 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) 221 #define GTEST_DEATH_TEST_(statement, predicate, regex_or_matcher, fail) \ argument 226 #statement, \ 242 GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); \ [all …]
|
H A D | gtest-internal.h | 1312 #define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) \ 1314 statement; \ 1344 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \ 1351 gtest_msg.value = "Expected: " #statement \ 1363 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) 1367 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \ 1372 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 1376 GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \ 1378 gtest_msg.value = "Expected: " #statement \ 1384 gtest_msg.value = "Expected: " #statement \ [all …]
|
/freebsd/contrib/kyua/cli/ |
H A D | cmd_db_exec_test.cpp | 58 sqlite::statement create = db.create_statement( in do_format_cell_test() 62 sqlite::statement insert = db.create_statement( in do_format_cell_test() 67 sqlite::statement query = db.create_statement("SELECT * FROM test"); in do_format_cell_test() 120 sqlite::statement create = db.create_statement( in ATF_TEST_CASE_BODY() 124 sqlite::statement query = db.create_statement( in ATF_TEST_CASE_BODY() 135 sqlite::statement create = db.create_statement( in ATF_TEST_CASE_BODY() 140 sqlite::statement insert = db.create_statement( in ATF_TEST_CASE_BODY() 146 sqlite::statement query = db.create_statement("SELECT * FROM test"); in ATF_TEST_CASE_BODY()
|
H A D | cmd_db_exec.hpp | 43 std::string format_cell(utils::sqlite::statement&, const int); 44 std::string format_headers(utils::sqlite::statement&); 45 std::string format_row(utils::sqlite::statement&);
|
H A D | cmd_db_exec.cpp | 92 cli::format_cell(sqlite::statement& stmt, const int index) in format_cell() 123 cli::format_headers(sqlite::statement& stmt) in format_headers() 140 cli::format_row(sqlite::statement& stmt) in format_row() 181 sqlite::statement stmt = db.create_statement( in run()
|
/freebsd/contrib/atf/atf-c++/ |
H A D | macros.hpp | 135 #define ATF_REQUIRE_THROW(expected_exception, statement) \ argument 138 statement; \ 141 << ": " #statement " did not throw " #expected_exception \ 147 atfu_ss << "Line " << __LINE__ << ": " #statement " threw an " \ 153 atfu_ss << "Line " << __LINE__ << ": " #statement " threw an " \ 159 #define ATF_REQUIRE_THROW_RE(expected_exception, regexp, statement) \ argument 162 statement; \ 165 << ": " #statement " did not throw " #expected_exception \ 172 << ": " #statement " threw " #expected_exception "(" \ 179 atfu_ss << "Line " << __LINE__ << ": " #statement " threw an " \ [all …]
|
/freebsd/lib/libc/posix1e/ |
H A D | mac.c | 185 char *comment, *parse, *statement; in mac_init_internal() local 202 statement = next_token(&parse); in mac_init_internal() 203 if (statement == NULL) in mac_init_internal() 206 if (strcmp(statement, "default_labels") == 0) { in mac_init_internal() 226 } else if (strcmp(statement, "default_ifnet_labels") == 0 || in mac_init_internal() 227 strcmp(statement, "default_file_labels") == 0 || in mac_init_internal() 228 strcmp(statement, "default_process_labels") == 0) { in mac_init_internal() 231 if (strcmp(statement, "default_ifnet_labels") == 0) in mac_init_internal() 233 else if (strcmp(statement, "default_file_labels") == 0) in mac_init_internal() 235 else if (strcmp(statement, "default_process_labels") == in mac_init_internal()
|
/freebsd/contrib/lutok/ |
H A D | test_utils.hpp | 61 #define REQUIRE_API_ERROR(exp_api_function, statement) \ argument 64 statement; \ 65 ATF_FAIL("api_error not raised by " #statement); \
|
/freebsd/tools/coccinelle/ |
H A D | copystr9.cocci | 3 statement S1; 12 statement S1; 28 statement S1;
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | assertions.md | 302 Note that the piece of code under test can be a compound statement, for example: 313 `EXPECT_THROW(`*`statement`*`,`*`exception_type`*`)` \ 314 `ASSERT_THROW(`*`statement`*`,`*`exception_type`*`)` 316 Verifies that *`statement`* throws an exception of type *`exception_type`*. 320 `EXPECT_ANY_THROW(`*`statement`*`)` \ 321 `ASSERT_ANY_THROW(`*`statement`*`)` 323 Verifies that *`statement`* throws an exception of any type. 327 `EXPECT_NO_THROW(`*`statement`*`)` \ 328 `ASSERT_NO_THROW(`*`statement`*`)` 330 Verifies that *`statement`* does not throw any exception. [all …]
|
/freebsd/crypto/heimdal/lib/hdb/ |
H A D | hdb-sqlite.c | 128 sqlite3_stmt **statement, in hdb_sqlite_prepare_stmt() argument 133 ret = sqlite3_prepare_v2(db, str, -1, statement, NULL); in hdb_sqlite_prepare_stmt() 140 ret = sqlite3_prepare_v2(db, str, -1, statement, NULL); in hdb_sqlite_prepare_stmt() 166 const char *statement, in hdb_sqlite_exec_stmt() argument 171 ret = sqlite3_exec(database, statement, NULL, NULL, NULL); in hdb_sqlite_exec_stmt() 178 ret = sqlite3_exec(database, statement, NULL, NULL, NULL); in hdb_sqlite_exec_stmt() 183 "Execute %s: %s", statement, in hdb_sqlite_exec_stmt() 456 hdb_sqlite_step_once(krb5_context context, HDB *db, sqlite3_stmt *statement) in hdb_sqlite_step_once() argument 461 ret = hdb_sqlite_step(context, hsdb->db, statement); in hdb_sqlite_step_once() 462 sqlite3_clear_bindings(statement); in hdb_sqlite_step_once() [all …]
|
/freebsd/contrib/byacc/test/ |
H A D | btyacc_demo.y | 59 %type <code> statement(<scope>) statement_list(<scope>) 182 statement($e): in statement() function 185 | IF '(' expr($e) ')' THEN statement($e) ELSE statement($e) [YYVALID;] 187 | IF '(' expr($e) ')' THEN statement($e) [YYVALID;] 193 | statement_list statement($e) { $$ = code_append($1, $2); }
|
/freebsd/contrib/com_err/ |
H A D | parse.y | 94 statements : statement 95 | statements statement 98 statement : INDEX NUMBER
|