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

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

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

TEST(LlvmLibcMemRChrTest, FindsCharacterAfterNullTerminator) {}

TEST(LlvmLibcMemRChrTest, FindsCharacterInNonNullTerminatedCollection) {}

TEST(LlvmLibcMemRChrTest, FindsFirstCharacter) {}

TEST(LlvmLibcMemRChrTest, FindsMiddleCharacter) {}

TEST(LlvmLibcMemRChrTest, FindsLastCharacterThatIsNotNullTerminator) {}

TEST(LlvmLibcMemRChrTest, FindsNullTerminator) {}

TEST(LlvmLibcMemRChrTest, CharacterNotWithinStringShouldReturnNullptr) {}

TEST(LlvmLibcMemRChrTest, CharacterNotWithinSizeShouldReturnNullptr) {}

TEST(LlvmLibcMemRChrTest, ShouldFindLastOfDuplicates) {}

TEST(LlvmLibcMemRChrTest, EmptyStringShouldOnlyMatchNullTerminator) {}

TEST(LlvmLibcMemRChrTest, SignedCharacterFound) {}

TEST(LlvmLibcMemRChrTest, ZeroLengthShouldReturnNullptr) {}