//===-- Unittests for stpncpy ---------------------------------------------===// // // 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 "src/__support/CPP/span.h" #include "src/string/stpncpy.h" #include "test/UnitTest/Test.h" #include <stddef.h> // For size_t. class LlvmLibcStpncpyTest : public LIBC_NAMESPACE::testing::Test { … }; TEST_F(LlvmLibcStpncpyTest, Untouched) { … } TEST_F(LlvmLibcStpncpyTest, CopyOne) { … } TEST_F(LlvmLibcStpncpyTest, CopyNull) { … } TEST_F(LlvmLibcStpncpyTest, CopyPastSrc) { … } TEST_F(LlvmLibcStpncpyTest, CopyTwoNoNull) { … } TEST_F(LlvmLibcStpncpyTest, CopyTwoWithNull) { … }