//===-- Unittests for strncpy ---------------------------------------------===// // // 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/strncpy.h" #include "test/UnitTest/Test.h" #include <stddef.h> // For size_t. class LlvmLibcStrncpyTest : public LIBC_NAMESPACE::testing::Test { … }; TEST_F(LlvmLibcStrncpyTest, Untouched) { … } TEST_F(LlvmLibcStrncpyTest, CopyOne) { … } TEST_F(LlvmLibcStrncpyTest, CopyNull) { … } TEST_F(LlvmLibcStrncpyTest, CopyPastSrc) { … }