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

//===-- Unittests for memmem ----------------------------------------------===//
//
// 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/memmem.h"
#include "test/UnitTest/Test.h"

#include "src/string/string_utils.h"

namespace LIBC_NAMESPACE_DECL {

TEST(LlvmLibcMemmemTest, EmptyHaystackEmptyNeedleReturnsHaystck) {}

TEST(LlvmLibcMemmemTest, EmptyHaystackNonEmptyNeedleReturnsNull) {}

TEST(LlvmLibcMemmemTest, EmptyNeedleReturnsHaystack) {}

TEST(LlvmLibcMemmemTest, ExactMatchReturnsHaystack) {}

TEST(LlvmLibcMemmemTest, ReturnFirstMatchOfNeedle) {}

TEST(LlvmLibcMemmemTest, ReturnFirstExactMatchOfNeedle) {}

TEST(LlvmLibcMemmemTest, NullTerminatorDoesNotInterruptMatch) {}

TEST(LlvmLibcMemmemTest, ReturnNullIfNoExactMatch) {}

TEST(LlvmLibcMemmemTest, ReturnMatchOfSpecifiedNeedleLength) {}

TEST(LlvmLibcMemmemTest, ReturnNullIfInadequateHaystackLength) {}
} // namespace LIBC_NAMESPACE_DECL