1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-14 02:31:00 +00:00
serenity/Tests/AK
Ali Mohammad Pur 3d94b5051d AK: Make Vector capable of holding reference types
This commit makes it possible to instantiate `Vector<T&>` and use it
to store references to `T` in a vector.
All non-pointer observers are made to return the reference, and the
pointer observers simply yield the underlying pointer.
Note that the 'find_*' methods act on the values and not the pointers
that are stored in the vector.
This commit also makes errors in various vector methods much more
readable by directly using requires-clauses on them.
And finally, it should be noted that Vector cannot hold temporaries :^)
2021-06-08 19:14:24 +02:00
..
CMakeLists.txt Tests: Add tests for most functions in AK/CharacterType.h 2021-06-03 13:31:46 +02:00
test.frm Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAllOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAnyOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestArray.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAtomic.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBadge.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBase64.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinaryHeap.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinarySearch.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitCast.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitmap.cpp AK: Don't read past the end in BitmapView::count_in_range() 2021-05-16 21:58:14 +01:00
TestByteBuffer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCharacterTypes.cpp Tests: Add tests for most functions in AK/CharacterType.h 2021-06-03 13:31:46 +02:00
TestChecked.cpp Tests: Add tests for Checked<T>::div() overflow 2021-05-07 09:26:11 +02:00
TestCircularDeque.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularDuplexStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestComplex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDistinctNumeric.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDoublyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEndian.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEnumBits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFind.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFormat.cpp AK+Everywhere: Fix compiletime format parsing of replacement fields 2021-06-01 23:12:17 +04:30
TestGenericLexer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashFunctions.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashMap.cpp Everywhere: Add missing includes for <AK/OwnPtr.h> 2021-05-19 21:36:57 +02:00
TestHashTable.cpp AK: Make HashTable::operator=(HashTable&&) clear the moved-from table 2021-05-30 14:34:32 +02:00
TestHex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIndexSequence.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveList.cpp AK: Add IntrusiveList::size_slow() to match InlineLinkedList 2021-06-07 09:42:55 +02:00
TestIntrusiveRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIPv4Address.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestJSON.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestLEB128.cpp AK: Handle LEB128 encoded values that are too large for the result type 2021-05-31 14:25:27 +04:30
TestLexicalPath.cpp Tests: Add tests for LexicalPath dirname handling 2021-05-27 18:21:36 +04:30
TestMACAddress.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemMem.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemoryStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNeverDestroyed.cpp Tests: Mark use-after-scope NeverDestroyed test NO_SANITIZE_ADDRESS 2021-05-14 08:34:00 +01:00
TestNonnullRefPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNumberFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestOptional.cpp AK: Enable direct comparsion of Optional<T> and T 2021-06-01 11:38:17 +02:00
TestQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQuickSort.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRefPtr.cpp Tests: Fix use-after-free in TestRefPtr.self_observers 2021-05-14 08:34:00 +01:00
TestSinglyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceGenerator.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceLocation.cpp AK+Userland: Use akaster@serenityos.org for my copyright headers 2021-05-30 14:35:34 +01:00
TestSpan.cpp AK: Implement Span::starts_with() 2021-05-07 11:46:53 +01:00
TestStack.cpp AK: Implement AK::Stack 2021-05-26 16:36:53 +04:30
TestString.cpp AK+Everywhere: Consolidate String::index_of() and String::find() 2021-05-24 11:59:18 +02:00
TestStringUtils.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestStringView.cpp AK: Don’t drop lines between \r and \n in StringView::lines() (#7662) 2021-06-04 12:06:08 +04:30
TestTime.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTrie.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
TestTuple.cpp AK: Add a Tuple implementation 2021-05-11 14:09:17 +01:00
TestTypedTransfer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTypeTraits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestURL.cpp AK: Do not trim away non-ASCII bytes when parsing URL 2021-06-05 10:53:31 +02:00
TestUtf8.cpp AK: Do not VERIFY on invalid code point bytes in UTF8View 2021-06-03 18:28:27 +04:30
TestVariant.cpp AK: Fix Variant construction from lvalue references 2021-05-22 09:34:31 +02:00
TestVector.cpp AK: Make Vector capable of holding reference types 2021-06-08 19:14:24 +02:00
TestWeakPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00