[clang] Introduce paged vector (PR #66430)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 09:23:29 PDT 2023


================
@@ -0,0 +1,84 @@
+//===- llvm/unittest/ADT/PagedVectorTest.cpp ------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// PagedVector unit tests.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/PagedVector.h"
+#include "gtest/gtest.h"
+
+namespace llvm {
+TEST(PagedVectorTest, FunctionalityTest) {
----------------
shafik wrote:

I don't see tests for `clear()`, `empty()` or `at(..)` and I think we should have `EXPECT_DEATH` tests for assertions that are testable.

https://github.com/llvm/llvm-project/pull/66430


More information about the cfe-commits mailing list