mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
Tests: Cast unused smart-pointer return values to void
This commit is contained in:
parent
b2464cf4c0
commit
9e3a786a64
Notes:
sideshowbarker
2024-07-17 23:09:46 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/9e3a786a64b Pull-request: https://github.com/SerenityOS/serenity/pull/11151
@ -20,7 +20,7 @@ TESTJS_GLOBAL_FUNCTION(can_parse_source, canParseSource)
|
||||
{
|
||||
auto source = TRY(vm.argument(0).to_string(global_object));
|
||||
auto parser = JS::Parser(JS::Lexer(source));
|
||||
parser.parse_program();
|
||||
(void)parser.parse_program();
|
||||
return JS::Value(!parser.has_errors());
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ void insert_and_verify(int count)
|
||||
{
|
||||
auto db = SQL::Database::construct("/tmp/test.db");
|
||||
EXPECT(!db->open().is_error());
|
||||
setup_table(db);
|
||||
(void)setup_table(db);
|
||||
commit(db);
|
||||
}
|
||||
{
|
||||
@ -154,7 +154,7 @@ TEST_CASE(add_schema_to_database)
|
||||
ScopeGuard guard([]() { unlink("/tmp/test.db"); });
|
||||
auto db = SQL::Database::construct("/tmp/test.db");
|
||||
EXPECT(!db->open().is_error());
|
||||
setup_schema(db);
|
||||
(void)setup_schema(db);
|
||||
commit(db);
|
||||
}
|
||||
|
||||
@ -164,7 +164,7 @@ TEST_CASE(get_schema_from_database)
|
||||
{
|
||||
auto db = SQL::Database::construct("/tmp/test.db");
|
||||
EXPECT(!db->open().is_error());
|
||||
setup_schema(db);
|
||||
(void)setup_schema(db);
|
||||
commit(db);
|
||||
}
|
||||
{
|
||||
@ -181,7 +181,7 @@ TEST_CASE(add_table_to_database)
|
||||
ScopeGuard guard([]() { unlink("/tmp/test.db"); });
|
||||
auto db = SQL::Database::construct("/tmp/test.db");
|
||||
EXPECT(!db->open().is_error());
|
||||
setup_table(db);
|
||||
(void)setup_table(db);
|
||||
commit(db);
|
||||
}
|
||||
|
||||
@ -191,7 +191,7 @@ TEST_CASE(get_table_from_database)
|
||||
{
|
||||
auto db = SQL::Database::construct("/tmp/test.db");
|
||||
EXPECT(!db->open().is_error());
|
||||
setup_table(db);
|
||||
(void)setup_table(db);
|
||||
commit(db);
|
||||
}
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user