summaryrefslogtreecommitdiff
path: root/asl/tests
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-31 01:16:12 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-31 01:16:12 +0100
commitb2eddfabffeb78fc5b49f9c17d70175d2dfed2e0 (patch)
tree4f292d1608b0c5f4f60dab65af66a7c29156f425 /asl/tests
parent739f53210466415affd5b0ebd5b3da5c251d232c (diff)
Some work on buffer move
Diffstat (limited to 'asl/tests')
-rw-r--r--asl/tests/buffer_tests.cpp2
-rw-r--r--asl/tests/format_tests.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/asl/tests/buffer_tests.cpp b/asl/tests/buffer_tests.cpp
index 4c2d2c1..15cc391 100644
--- a/asl/tests/buffer_tests.cpp
+++ b/asl/tests/buffer_tests.cpp
@@ -46,6 +46,8 @@ struct CounterAllocator
{
asl::GlobalHeap::dealloc(ptr, layout);
}
+
+ constexpr bool operator==(const CounterAllocator&) const { return true; }
};
static_assert(asl::allocator<CounterAllocator>);
diff --git a/asl/tests/format_tests.cpp b/asl/tests/format_tests.cpp
index 042fcb4..8318757 100644
--- a/asl/tests/format_tests.cpp
+++ b/asl/tests/format_tests.cpp
@@ -12,7 +12,7 @@ class StringSink : public asl::Writer
char* m_data{};
public:
- ~StringSink()
+ ~StringSink() override
{
reset();
}
@@ -24,7 +24,7 @@ public:
asl::layout::array<char>(m_current_len),
asl::layout::array<char>(m_current_len + str.size())));
- asl::memcpy(m_data + m_current_len, str.data(), str.size());
+ asl::memcpy(m_data + m_current_len, str.data(), str.size()); // NOLINT
m_current_len += str.size();
}