ladybird/Tests
Timothy Flynn 2397836f8e LibSQL+SQLServer: Introduce and use ResultOr<ValueType>
The result of a SQL statement execution is either:
    1. An error.
    2. The list of rows inserted, deleted, selected, etc.

(2) is currently represented by a combination of the Result class and
the ResultSet list it holds. This worked okay, but issues start to
arise when trying to use Result in non-statement contexts (for example,
when introducing Result to SQL expression execution).

What we really need is for Result to be a thin wrapper that represents
both (1) and (2), and to not have any explicit members like a ResultSet.
So this commit removes ResultSet from Result, and introduces ResultOr,
which is just an alias for AK::ErrorOrr. Statement execution now returns
ResultOr<ResultSet> instead of Result. This further opens the door for
expression execution to return ResultOr<Value> in the future.

Lastly, this moves some other context held by Result over to ResultSet.
This includes the row count (which is really just the size of ResultSet)
and the command for which the result is for.
2022-02-10 23:11:13 +01:00
..
AK AK: Clear minimum when removing last node of RedBlackTree 2022-02-10 14:09:39 +00:00
Kernel Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
LibC LibC: Ensure most time tests run under UTC 2022-01-25 18:39:36 +00:00
LibCompress Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
LibCore LibCore+Userland: Remove Core::TCPSocket :^) 2022-02-06 17:28:17 +00:00
LibCpp Tests: Remove all file(GLOB) from CMakeLists in Tests 2021-09-02 09:08:23 +02:00
LibCrypto LibCrypto: Do not allow signed big integers to be negative zero 2022-02-06 15:49:54 +00:00
LibEDID LibEDID: Fix handling extension maps 2022-01-24 19:29:06 +00:00
LibELF LibELF: Fix dynamic linking of dlopen()-ed libs 2021-10-06 12:33:21 +02:00
LibGfx Everywhere: Fully qualify font names by including their slope 2022-02-01 10:06:26 +01:00
LibGL Tests: Add a simple LibGL render-test 2021-11-29 23:17:05 +03:30
LibIMAP Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
LibJS LibJS+Everywhere: Remove VM::exception() and most related functions 2022-02-08 09:12:42 +00:00
LibM Tests: Add floor and ceil tests to test-math 2022-01-02 12:44:31 +03:30
LibMarkdown Meta: Add Meta/CMake to the CMAKE_MODULE_PATH for Serenity and Lagom 2021-09-15 19:04:52 +04:30
LibPDF Tests: Add test cases for #10702 and #10717 2022-01-08 18:57:55 +01:00
LibPthread LibPthread: Add first test cases for RWlock 2021-09-28 18:36:20 +03:30
LibRegex LibRegex: Only skip full instructions when optimizing alternations 2022-02-09 21:02:24 +00:00
LibSQL LibSQL+SQLServer: Introduce and use ResultOr<ValueType> 2022-02-10 23:11:13 +01:00
LibTest LibTest: Add EXPECT_NO_CRASH 2021-12-19 14:22:06 -08:00
LibThreading Tests: Disable LibThreading detach tests for now 2021-10-06 19:21:35 +02:00
LibTimeZone Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
LibTLS Userland: Convert TLS::TLSv12 to a Core::Stream::Socket 2022-02-06 13:10:10 +01:00
LibUnicode Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
LibWasm LibJS: Convert ArrayBuffer construction to ThrowCompletionOr 2022-02-08 09:12:42 +00:00
LibWeb LibWeb: Introduce the Environment Settings Object 2022-02-08 17:47:44 +00:00
UserspaceEmulator Tests: Remove all file(GLOB) from CMakeLists in Tests 2021-09-02 09:08:23 +02:00
CMakeLists.txt LibEDID: Add a library to parse EDID blobs 2022-01-23 22:45:21 +00:00