libcuspatial  23.12.00
Loading...
Searching...
No Matches
List of all members
cuspatial::test::BaseFixtureWithParam< Ts > Class Template Reference

Base test fixture class from which libcuspatial test with only value parameterization should inherit. More...

#include <base_fixture.hpp>

Inheritance diagram for cuspatial::test::BaseFixtureWithParam< Ts >:
cuspatial::test::RMMResourceMixin

Additional Inherited Members

- Public Member Functions inherited from cuspatial::test::RMMResourceMixin
rmm::mr::device_memory_resource * mr ()
 Returns pointer to device_memory_resource that should be used for all tests inheriting from this fixture.
 
rmm::cuda_stream_view stream ()
 Returns cuda_stream_view that should be used for computation in tests inheriting from this fixture.
 

Detailed Description

template<typename... Ts>
class cuspatial::test::BaseFixtureWithParam< Ts >

Base test fixture class from which libcuspatial test with only value parameterization should inherit.

Example:

template<int, int, int>
class MyTest : public cuspatial::test::BaseFixtureWithParam {};
TEST_P(MyTest, TestParamterGet) {
auto a = std::get<0>(GetParam());
auto b = std::get<1>(GetParam());
auto c = std::get<2>(GetParam());
...
}
INSTANTIATE_TEST_SUITE_P(MyTests, MyTest, ::testing::Values(
std::make_tuple(1, 2, 3),
std::make_tuple(4, 5, 6, 9),
std::make_tuple(7, 8)))
Base test fixture class from which libcuspatial test with only value parameterization should inherit.

Definition at line 84 of file base_fixture.hpp.


The documentation for this class was generated from the following file: