//===- ReservoirSampler.cpp - Tests for the ReservoirSampler --------------===// // // 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 "llvm/FuzzMutate/Random.h" #include "gtest/gtest.h" #include <random> usingnamespacellvm; TEST(ReservoirSamplerTest, OneItem) { … } TEST(ReservoirSamplerTest, NoWeight) { … } TEST(ReservoirSamplerTest, Uniform) { … }