Skip to content

Commit

Permalink
rename testing type
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Dec 2, 2024
1 parent ca11534 commit fe53037
Show file tree
Hide file tree
Showing 165 changed files with 235 additions and 304 deletions.
3 changes: 1 addition & 2 deletions core/test/base/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class Array : public ::testing::Test {
gko::array<T> x;
};

TYPED_TEST_SUITE(Array, gko::test::ComplexAndPODTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Array, gko::test::ComplexAndPODTypes, TypenameNameGenerator);


TYPED_TEST(Array, CanBeCreatedWithoutAnExecutor)
Expand Down
3 changes: 1 addition & 2 deletions core/test/base/batch_multi_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class MultiVector : public ::testing::Test {
std::unique_ptr<gko::matrix::Dense<value_type>> dense_mtx;
};

TYPED_TEST_SUITE(MultiVector, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(MultiVector, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(MultiVector, CanBeEmpty)
Expand Down
3 changes: 1 addition & 2 deletions core/test/base/combination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ class Combination : public ::testing::Test {
std::vector<std::shared_ptr<gko::LinOp>> coefficients;
};

TYPED_TEST_SUITE(Combination, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Combination, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Combination, CanBeEmpty)
Expand Down
3 changes: 1 addition & 2 deletions core/test/base/composition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class Composition : public ::testing::Test {
std::vector<std::shared_ptr<gko::LinOp>> operators;
};

TYPED_TEST_SUITE(Composition, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Composition, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Composition, CanBeEmpty)
Expand Down
3 changes: 1 addition & 2 deletions core/test/base/dense_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class DenseCache : public ::testing::Test {
};


TYPED_TEST_SUITE(DenseCache, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(DenseCache, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(DenseCache, CanDefaultConstruct)
Expand Down
4 changes: 2 additions & 2 deletions core/test/base/iterator_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ZipIterator : public ::testing::Test {
const std::vector<value_type> ordered_value;
};

TYPED_TEST_SUITE(ZipIterator, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(ZipIterator, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down Expand Up @@ -366,7 +366,7 @@ class PermuteIterator : public ::testing::Test {
using value_type = ValueType;
};

TYPED_TEST_SUITE(PermuteIterator, gko::test::ComplexAndPODTypesWithHalf,
TYPED_TEST_SUITE(PermuteIterator, gko::test::ComplexAndPODTypes,
TypenameNameGenerator);


Expand Down
7 changes: 3 additions & 4 deletions core/test/base/mtx_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ class RealDummyLinOpTest : public ::testing::Test {
typename std::tuple_element<1, decltype(ValueIndexType())>::type;
};

TYPED_TEST_SUITE(RealDummyLinOpTest, gko::test::RealValueIndexTypesWithHalf,
TYPED_TEST_SUITE(RealDummyLinOpTest, gko::test::RealValueIndexTypes,
PairTypenameNameGenerator);


Expand Down Expand Up @@ -1178,7 +1178,7 @@ class DenseTest : public ::testing::Test {
using index_type = typename std::tuple_element<1, ValueIndexType>::type;
};

TYPED_TEST_SUITE(DenseTest, gko::test::RealValueIndexTypesWithHalf,
TYPED_TEST_SUITE(DenseTest, gko::test::RealValueIndexTypes,
PairTypenameNameGenerator);


Expand Down Expand Up @@ -1222,8 +1222,7 @@ class ComplexDummyLinOpTest : public ::testing::Test {
typename std::tuple_element<1, decltype(ValueIndexType())>::type;
};

TYPED_TEST_SUITE(ComplexDummyLinOpTest,
gko::test::ComplexValueIndexTypesWithHalf,
TYPED_TEST_SUITE(ComplexDummyLinOpTest, gko::test::ComplexValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
3 changes: 1 addition & 2 deletions core/test/base/segmented_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class SegmentedArray : public ::testing::Test {
std::shared_ptr<gko::Executor> exec = gko::ReferenceExecutor::create();
};

TYPED_TEST_SUITE(SegmentedArray, gko::test::PODTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(SegmentedArray, gko::test::PODTypes, TypenameNameGenerator);


TYPED_TEST(SegmentedArray, CanConstructFromExecutor)
Expand Down
4 changes: 2 additions & 2 deletions core/test/components/addressable_pq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class AddressablePriorityQueue : public ::testing::Test {
std::shared_ptr<const gko::Executor> exec;
};

TYPED_TEST_SUITE(AddressablePriorityQueue,
gko::test::RealValueIndexTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(AddressablePriorityQueue, gko::test::RealValueIndexTypes,
TypenameNameGenerator);


TYPED_TEST(AddressablePriorityQueue, InitializesCorrectly)
Expand Down
2 changes: 1 addition & 1 deletion core/test/factorization/elimination_forest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class EliminationForest : public ::testing::Test {
std::shared_ptr<const gko::ReferenceExecutor> ref;
};

TYPED_TEST_SUITE(EliminationForest, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(EliminationForest, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
3 changes: 1 addition & 2 deletions core/test/factorization/par_ic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class ParIc : public ::testing::Test {
std::shared_ptr<const gko::ReferenceExecutor> ref;
};

TYPED_TEST_SUITE(ParIc, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(ParIc, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(ParIc, SetIterations)
Expand Down
3 changes: 1 addition & 2 deletions core/test/factorization/par_ict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class ParIct : public ::testing::Test {
std::shared_ptr<const gko::ReferenceExecutor> ref;
};

TYPED_TEST_SUITE(ParIct, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(ParIct, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(ParIct, SetIterations)
Expand Down
3 changes: 1 addition & 2 deletions core/test/factorization/par_ilu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class ParIlu : public ::testing::Test {
std::shared_ptr<const gko::ReferenceExecutor> ref;
};

TYPED_TEST_SUITE(ParIlu, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(ParIlu, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(ParIlu, SetIterations)
Expand Down
2 changes: 1 addition & 1 deletion core/test/factorization/par_ilut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ParIlut : public ::testing::Test {
std::shared_ptr<const gko::ReferenceExecutor> ref;
};

TYPED_TEST_SUITE(ParIlut, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(ParIlut, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
3 changes: 1 addition & 2 deletions core/test/log/convergence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ class Convergence : public ::testing::Test {
gko::array<gko::stopping_status> status = {exec, 1};
};

TYPED_TEST_SUITE(Convergence, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Convergence, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Convergence, CanGetEmptyData)
Expand Down
2 changes: 1 addition & 1 deletion core/test/log/papi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Papi : public ::testing::Test {
int eventset;
};

TYPED_TEST_SUITE(Papi, gko::test::ValueTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(Papi, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Papi, CatchesAllocationStarted)
Expand Down
3 changes: 1 addition & 2 deletions core/test/log/solver_progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class SolverProgress : public ::testing::Test {
std::unique_ptr<Cg> solver;
};

TYPED_TEST_SUITE(SolverProgress, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(SolverProgress, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(SolverProgress, TableWorks)
Expand Down
2 changes: 1 addition & 1 deletion core/test/log/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ constexpr int num_iters = 10;
template <typename T>
class Stream : public ::testing::Test {};

TYPED_TEST_SUITE(Stream, gko::test::ValueTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(Stream, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Stream, CatchesAllocationStarted)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/batch_csr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Csr : public ::testing::Test {
std::unique_ptr<CsrMtx> sp_csr_mtx;
};

TYPED_TEST_SUITE(Csr, gko::test::ValueTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(Csr, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Csr, KnowsItsSizeAndValues)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/batch_dense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Dense : public ::testing::Test {
std::unique_ptr<gko::matrix::Dense<value_type>> dense_mtx;
};

TYPED_TEST_SUITE(Dense, gko::test::ValueTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(Dense, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Dense, KnowsItsSizeAndValues)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/batch_ell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Ell : public ::testing::Test {
std::unique_ptr<EllMtx> sp_ell_mtx;
};

TYPED_TEST_SUITE(Ell, gko::test::ValueTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(Ell, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Ell, KnowsItsSizeAndValues)
Expand Down
3 changes: 1 addition & 2 deletions core/test/matrix/batch_identity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class Identity : public ::testing::Test {
std::unique_ptr<gko::batch::MultiVector<value_type>> mvec;
};

TYPED_TEST_SUITE(Identity, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Identity, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Identity, KnowsItsSizeAndValues)
Expand Down
3 changes: 1 addition & 2 deletions core/test/matrix/coo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ class Coo : public ::testing::Test {
}
};

TYPED_TEST_SUITE(Coo, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(Coo, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(Coo, KnowsItsSize)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/coo_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CooBuilder : public ::testing::Test {
std::unique_ptr<Mtx> mtx;
};

TYPED_TEST_SUITE(CooBuilder, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(CooBuilder, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
3 changes: 1 addition & 2 deletions core/test/matrix/csr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class Csr : public ::testing::Test {
}
};

TYPED_TEST_SUITE(Csr, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(Csr, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(Csr, KnowsItsSize)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/csr_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CsrBuilder : public ::testing::Test {
std::unique_ptr<Mtx> mtx;
};

TYPED_TEST_SUITE(CsrBuilder, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(CsrBuilder, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/dense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Dense : public ::testing::Test {
std::unique_ptr<gko::matrix::Dense<value_type>> mtx;
};

TYPED_TEST_SUITE(Dense, gko::test::ValueTypesWithHalf, TypenameNameGenerator);
TYPED_TEST_SUITE(Dense, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Dense, CanBeEmpty)
Expand Down
3 changes: 1 addition & 2 deletions core/test/matrix/diagonal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class Diagonal : public ::testing::Test {
}
};

TYPED_TEST_SUITE(Diagonal, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Diagonal, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Diagonal, KnowsItsSize)
Expand Down
3 changes: 1 addition & 2 deletions core/test/matrix/ell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ class Ell : public ::testing::Test {
}
};

TYPED_TEST_SUITE(Ell, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(Ell, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(Ell, KnowsItsSize)
Expand Down
7 changes: 3 additions & 4 deletions core/test/matrix/fbcsr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class FbcsrSample : public ::testing::Test {
};


TYPED_TEST_SUITE(FbcsrSample, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(FbcsrSample, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down Expand Up @@ -183,7 +183,7 @@ template <typename ValueIndexType>
class FbcsrSampleComplex : public FbcsrSample<ValueIndexType> {};


TYPED_TEST_SUITE(FbcsrSampleComplex, gko::test::ComplexValueIndexTypesWithHalf,
TYPED_TEST_SUITE(FbcsrSampleComplex, gko::test::ComplexValueIndexTypes,
PairTypenameNameGenerator);


Expand Down Expand Up @@ -282,8 +282,7 @@ class Fbcsr : public ::testing::Test {
}
};

TYPED_TEST_SUITE(Fbcsr, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(Fbcsr, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(Fbcsr, GetNumBlocksCorrectlyThrows)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/fbcsr_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class FbcsrBuilder : public ::testing::Test {
std::unique_ptr<Mtx> mtx;
};

TYPED_TEST_SUITE(FbcsrBuilder, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(FbcsrBuilder, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
3 changes: 1 addition & 2 deletions core/test/matrix/hybrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ class Hybrid : public ::testing::Test {
}
};

TYPED_TEST_SUITE(Hybrid, gko::test::ValueIndexTypesWithHalf,
PairTypenameNameGenerator);
TYPED_TEST_SUITE(Hybrid, gko::test::ValueIndexTypes, PairTypenameNameGenerator);


TYPED_TEST(Hybrid, KnowsItsSize)
Expand Down
6 changes: 2 additions & 4 deletions core/test/matrix/identity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class Identity : public ::testing::Test {
std::shared_ptr<const gko::Executor> exec;
};

TYPED_TEST_SUITE(Identity, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(Identity, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(Identity, CanBeEmpty)
Expand Down Expand Up @@ -82,8 +81,7 @@ class IdentityFactory : public ::testing::Test {
using value_type = T;
};

TYPED_TEST_SUITE(IdentityFactory, gko::test::ValueTypesWithHalf,
TypenameNameGenerator);
TYPED_TEST_SUITE(IdentityFactory, gko::test::ValueTypes, TypenameNameGenerator);


TYPED_TEST(IdentityFactory, CanGenerateIdentityMatrix)
Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/permutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Permutation : public ::testing::Test {
std::unique_ptr<gko::matrix::Permutation<index_type>> mtx;
};

TYPED_TEST_SUITE(Permutation, gko::test::ValueIndexTypesWithHalf,
TYPED_TEST_SUITE(Permutation, gko::test::ValueIndexTypes,
PairTypenameNameGenerator);


Expand Down
2 changes: 1 addition & 1 deletion core/test/matrix/row_gatherer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RowGatherer : public ::testing::Test {
std::unique_ptr<OutVec> out;
};

TYPED_TEST_SUITE(RowGatherer, gko::test::TwoValueIndexTypeWithHalf,
TYPED_TEST_SUITE(RowGatherer, gko::test::TwoValueIndexTypes,
TupleTypenameNameGenerator);


Expand Down
Loading

0 comments on commit fe53037

Please sign in to comment.