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

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

// A helper function that calls memchr and abstracts away the explicit cast for
// readability purposes.
const char *call_memchr(const void *src, int c, size_t size) {}

TEST(LlvmLibcMemChrTest, FindsCharacterAfterNullTerminator) {}

TEST(LlvmLibcMemChrTest, FindsCharacterInNonNullTerminatedCollection) {}

TEST(LlvmLibcMemChrTest, FindsFirstCharacter) {}

TEST(LlvmLibcMemChrTest, FindsMiddleCharacter) {}

TEST(LlvmLibcMemChrTest, FindsLastCharacterThatIsNotNullTerminator) {}

TEST(LlvmLibcMemChrTest, FindsNullTerminator) {}

TEST(LlvmLibcMemChrTest, CharacterNotWithinStringShouldReturnNullptr) {}

TEST(LlvmLibcMemChrTest, CharacterNotWithinSizeShouldReturnNullptr) {}

TEST(LlvmLibcMemChrTest, TheSourceShouldNotChange) {}

TEST(LlvmLibcMemChrTest, ShouldFindFirstOfDuplicates) {}

TEST(LlvmLibcMemChrTest, EmptyStringShouldOnlyMatchNullTerminator) {}

TEST(LlvmLibcMemChrTest, SingleRepeatedCharacterShouldReturnFirst) {}

TEST(LlvmLibcMemChrTest, SignedCharacterFound) {}