ladybird/AK/Tests
Lenny Maiorani e6f907a155 AK: Simplify constructors and conversions from nullptr_t
Problem:
- Many constructors are defined as `{}` rather than using the ` =
  default` compiler-provided constructor.
- Some types provide an implicit conversion operator from `nullptr_t`
  instead of requiring the caller to default construct. This violates
  the C++ Core Guidelines suggestion to declare single-argument
  constructors explicit
  (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c46-by-default-declare-single-argument-constructors-explicit).

Solution:
- Change default constructors to use the compiler-provided default
  constructor.
- Remove implicit conversion operators from `nullptr_t` and change
  usage to enforce type consistency without conversion.
2021-01-12 09:11:45 +01:00
..
4chan_catalog.json AK: Add a benchmark for parsing 4chan catalog JSON 2019-08-04 11:57:32 +02:00
CMakeLists.txt SinglyLinkedList: Implement find in terms of AK::find 2021-01-11 19:45:05 +01:00
test.frm AK: Fix broken symlink used by JSON test 2020-08-06 00:05:52 +02:00
TestAllOf.cpp AK: Implement generic all_of algorithm 2020-11-21 19:25:14 +01:00
TestArray.cpp TestArray: constexpr_sum using span 2020-10-21 19:42:46 +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: Deal with unsigned integers in binary search. 2021-01-01 22:23:13 +01:00
TestBitmap.cpp Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
TestByteBuffer.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
TestChecked.cpp Checked: constexpr support 2020-10-20 16:31:24 +02:00
TestCircularDeque.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestCircularDuplexStream.cpp AK: Remove bogus test case for CircularDuplexStream. 2020-12-19 23:29:40 +01:00
TestCircularQueue.cpp CircularQueue: Ensure constructor does not construct any values 2020-10-17 23:21:00 +02:00
TestDistinctNumeric.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
TestDoublyLinkedList.cpp DoublyLinkedList: Implement find in terms of AK::find 2021-01-11 19:45:05 +01:00
TestEndian.cpp Endian: constexpr constructors and conversion operators 2020-10-08 23:28:54 +02:00
TestFind.cpp AK: Find a value in any container offering iterators 2021-01-11 19:45:05 +01:00
TestFormat.cpp AK: Add Formatter<FormatString> as helper class. 2021-01-09 21:11:09 +01:00
TestHashFunctions.cpp HashFunctions: constexpr capability 2020-10-21 19:42:12 +02:00
TestHashMap.cpp AK: Add HashMap(std::initializer_list<Entry>) constructor 2020-12-29 15:22:15 +01:00
TestIndexSequence.cpp AK: Add tests for type traits and IndexSequence 2020-12-30 11:32:20 +01:00
TestIPv4Address.cpp IPv4Address: constexpr support 2020-11-11 12:18:25 +01:00
TestJSON.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
TestLexicalPath.cpp AK: Remove relative_paths test from TestLexicalPath 2020-08-02 20:48:37 +02:00
TestMACAddress.cpp MACAddress: AK::Array as member variable instead of C-array 2020-11-20 21:18:14 +01:00
TestMemMem.cpp AK: Implement memmem() for iterator haystacks 2020-12-08 23:34:38 +01:00
TestMemoryStream.cpp AK: Remove redundant compare() functions. 2021-01-02 01:37:22 +01:00
TestNeverDestroyed.cpp NeverDestroyed: Add tests 2020-11-22 10:54:33 +01:00
TestNonnullRefPtr.cpp AK: Use unsigned int for refcount 2020-06-12 16:08:45 +02:00
TestNumberFormat.cpp AK: Eradicate calls to warn(). 2020-10-25 18:52:51 +01:00
TestOptional.cpp AK: Add operator* and operator-> overloads in Optional. 2020-12-31 00:51:12 +01:00
TestQueue.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestQuickSort.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
TestRefPtr.cpp AK: Add test for the will_be_destroyed and one_ref_left magic functions 2020-12-06 15:49:33 +01:00
TestSinglyLinkedList.cpp SinglyLinkedList: Implement find in terms of AK::find 2021-01-11 19:45:05 +01:00
TestSourceGenerator.cpp Everywhere: void arguments to C functions 2020-12-26 10:10:27 +01:00
TestSpan.cpp Span: constexpr support 2020-10-16 17:06:47 +02:00
TestString.cpp AK: printf was not accounting for plus sign with "%+d" 2020-11-05 11:04:10 +01:00
TestStringUtils.cpp AK: Add String{,View}::is_whitespace() 2021-01-03 10:47:29 +01:00
TestStringView.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestTrie.cpp AK: Correct name in TestMain for TestTrie 2020-12-30 11:32:20 +01:00
TestTypedTransfer.cpp AK: Moved TypedTransfer into it's own header. 2020-09-09 20:15:50 +02:00
TestTypeTraits.cpp TestTypeTraits: Fix incorrectly namespaced nullptr_t 2021-01-10 18:20:14 +01:00
TestURL.cpp AK::URL: Fix setting the port number in the case it was the last element of the URL 2020-12-12 20:09:42 +01:00
TestUtf8.cpp Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
TestVector.cpp Vector: Implement find, find_if, find_first_matching in terms of AK::find* 2021-01-11 19:45:05 +01:00
TestWeakPtr.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00