//===- llvm/unittest/OutputBufferTest.cpp - OutputStream unit tests -------===// // // 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 // //===----------------------------------------------------------------------===// #include "llvm/Demangle/MicrosoftDemangleNodes.h" #include "llvm/Demangle/Utility.h" #include "gtest/gtest.h" #include <string> #include <string_view> usingnamespacellvm; OutputBuffer; static std::string toString(OutputBuffer &OB) { … } template <typename T> static std::string printToString(const T &Value) { … } TEST(OutputBufferTest, Format) { … } TEST(OutputBufferTest, Insert) { … } TEST(OutputBufferTest, Prepend) { … } // Test when initial needed size is larger than the default. TEST(OutputBufferTest, Extend) { … }