//===- llvm/unittest/ADT/EnumeratedArrayTest.cpp ----------------*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// // // EnumeratedArray unit tests. // //===----------------------------------------------------------------------===// #include "llvm/ADT/EnumeratedArray.h" #include "llvm/ADT/iterator_range.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include <type_traits> namespace llvm { //===--------------------------------------------------------------------===// // Test initialization and use of operator[] for both read and write. //===--------------------------------------------------------------------===// TEST(EnumeratedArray, InitAndIndex) { … } //===--------------------------------------------------------------------===// // Test size and empty function //===--------------------------------------------------------------------===// TEST(EnumeratedArray, Size) { … } //===--------------------------------------------------------------------===// // Test iterators //===--------------------------------------------------------------------===// TEST(EnumeratedArray, Iterators) { … } //===--------------------------------------------------------------------===// // Test typedefs //===--------------------------------------------------------------------===// namespace { enum class Colors { … }; Array; static_assert …; static_assert …; static_assert …; static_assert …; static_assert …; } // namespace } // namespace llvm