llvm/libc/test/src/string/bcopy_test.cpp

//===-- Unittests for bcopy -----------------------------------------------===//
//
// 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/macros/config.h"
#include "src/string/bcopy.h"

#include "memory_utils/memory_check_utils.h"
#include "src/__support/CPP/span.h"
#include "test/UnitTest/MemoryMatcher.h"
#include "test/UnitTest/Test.h"

array;
span;

namespace LIBC_NAMESPACE_DECL {

TEST(LlvmLibcBcopyTest, MoveZeroByte) {}

TEST(LlvmLibcBcopyTest, DstAndSrcPointToSameAddress) {}

TEST(LlvmLibcBcopyTest, DstStartsBeforeSrc) {}

TEST(LlvmLibcBcopyTest, DstStartsAfterSrc) {}

// e.g. `Dst` follow `src`.
// str: [abcdefghij]
//      [__src_____]
//      [_____Dst__]
TEST(LlvmLibcBcopyTest, SrcFollowDst) {}

TEST(LlvmLibcBcopyTest, DstFollowSrc) {}

// Adapt CheckMemmove signature to bcopy.
static inline void Adaptor(cpp::span<char> dst, cpp::span<char> src,
                           size_t size) {}

TEST(LlvmLibcBcopyTest, SizeSweep) {}

} // namespace LIBC_NAMESPACE_DECL