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

//===-- Unittests for memmove ---------------------------------------------===//
//
// 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/memmove.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(LlvmLibcMemmoveTest, MoveZeroByte) {}

TEST(LlvmLibcMemmoveTest, DstAndSrcPointToSameAddress) {}

TEST(LlvmLibcMemmoveTest, DstStartsBeforeSrc) {}

TEST(LlvmLibcMemmoveTest, DstStartsAfterSrc) {}

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

TEST(LlvmLibcMemmoveTest, DstFollowSrc) {}

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

TEST(LlvmLibcMemmoveTest, SizeSweep) {}

} // namespace LIBC_NAMESPACE_DECL