summaryrefslogtreecommitdiff
path: root/Tests/LibMarkdown
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-11 18:27:30 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-12 14:16:42 +0100
commit6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (patch)
tree327b04fb4820758e4d8cc60d30bd849d7b3511eb /Tests/LibMarkdown
parented4c2f2f8ea59295edceca77bf308df5de6872d6 (diff)
downloadserenity-6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3.zip
LibCore: Rename `Stream::*_or_error` to `*_entire_buffer`
All of our functions are `_or_error` (or are about to be), and maybe making it less reminiscient of AK::Stream will make people use it more.
Diffstat (limited to 'Tests/LibMarkdown')
-rw-r--r--Tests/LibMarkdown/TestCommonmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibMarkdown/TestCommonmark.cpp b/Tests/LibMarkdown/TestCommonmark.cpp
index 16571b832e..a3a5e720cd 100644
--- a/Tests/LibMarkdown/TestCommonmark.cpp
+++ b/Tests/LibMarkdown/TestCommonmark.cpp
@@ -22,7 +22,7 @@ TEST_SETUP
auto file = file_or_error.release_value();
auto file_size = MUST(file->size());
auto content = MUST(ByteBuffer::create_uninitialized(file_size));
- if (!file->read_or_error(content.bytes()))
+ if (!file->read_entire_buffer(content.bytes()))
VERIFY_NOT_REACHED();
DeprecatedString test_data { content.bytes() };