1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 04:27:35 +00:00
serenity/AK/Tests
Lenny Maiorani 2983215fb1 Base64: Pre-allocate size of input and output
Problem:
- Output of decode and encode grow as the decode and encode
  happen. This is inefficient because a large size will require many
  reallocations.
- `const` qualifiers are missing on variables which are not intended
  to change.

Solution:
- Since the size of the decoded or encoded message is known prior to
  starting, calculate the size and set the output to that size
  immediately. All appends will not incur the reallocation overhead.
- Add `const` qualifiers to show intent.
2020-10-13 23:59:46 +02:00
..
4chan_catalog.json AK: Add a benchmark for parsing 4chan catalog JSON 2019-08-04 11:57:32 +02:00
CMakeLists.txt Build: Fix cmake test runner, so it knows when tests fail 2020-05-26 13:38:20 +02:00
test.frm AK: Fix broken symlink used by JSON test 2020-08-06 00:05:52 +02:00
TestArray.cpp AK: Add Array<T, Size> template. 2020-09-08 14:01:21 +02:00
TestAtomic.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestBase64.cpp Base64: Pre-allocate size of input and output 2020-10-13 23:59:46 +02:00
TestBinarySearch.cpp AK: Fix the signature of binary_search. 2020-08-26 21:07:53 +02:00
TestBitmap.cpp Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
TestByteBuffer.cpp AK: Prevent confusing silent misuse of ByteBuffer 2020-08-22 17:18:14 +02:00
TestChecked.cpp Tests: Document 'missing' tests 2020-08-27 10:12:04 +02:00
TestCircularDeque.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestCircularDuplexStream.cpp LibCompress: Simplify logic in deflate implementation. 2020-09-06 12:54:45 +02:00
TestCircularQueue.cpp AK: Move include <AK/TestSuite.h> to the top. 2020-08-22 10:46:56 +02:00
TestDistinctNumeric.cpp AK: Implement and test DistinctNumeric class 2020-08-10 11:51:45 +02:00
TestEndian.cpp Endian: constexpr constructors and conversion operators 2020-10-08 23:28:54 +02:00
TestFormat.cpp AK+Format: Add SFINAE wrapper 'FormatIfSupported'. 2020-10-08 09:59:55 +02:00
TestHashMap.cpp AK: Remove test case that doesn't test anything. 2020-08-22 10:46:56 +02:00
TestJSON.cpp AK: Add test case for duplicate JsonObject keys 2020-08-10 14:48:45 +02:00
TestLexicalPath.cpp AK: Remove relative_paths test from TestLexicalPath 2020-08-02 20:48:37 +02:00
TestMemoryStream.cpp AK: Re-add OutputMemoryStream for static buffers only. 2020-09-15 20:36:45 +02:00
TestNonnullRefPtr.cpp AK: Use unsigned int for refcount 2020-06-12 16:08:45 +02:00
TestNumberFormat.cpp AK: Fix human_readable_size corner cases 2020-08-23 11:24:55 +02:00
TestOptional.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestQueue.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestRefPtr.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestSourceGenerator.cpp AK: Add SourceGenerator class. 2020-10-12 19:40:49 +02:00
TestSpan.cpp AK: Rename Tests/Span.cpp to Tests/TestSpan.cpp. 2020-08-06 10:33:16 +02:00
TestString.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestStringUtils.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestStringView.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestTypedTransfer.cpp AK: Moved TypedTransfer into it's own header. 2020-09-09 20:15:50 +02:00
TestURL.cpp AK: Make sure URL retains trailing slash if present in complete_url 2020-05-17 16:35:42 +02:00
TestUtf8.cpp Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
TestVector.cpp AK: Remove FixedArray class. 2020-09-08 14:01:21 +02:00
TestWeakPtr.cpp Applications+IRCClient: Use new format functions. 2020-09-23 21:45:28 +02:00