-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] 2 tests renamed #1726
[core] 2 tests renamed #1726
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -33,7 +33,7 @@ struct TestParams | |||||
}; | ||||||
|
||||||
// test class that accepts TestParams as a parameter | ||||||
class EcalTest : public ::testing::TestWithParam<TestParams> | ||||||
class TestFixture : public ::testing::TestWithParam<TestParams> | ||||||
{ | ||||||
protected: | ||||||
void SetUp() override | ||||||
|
@@ -50,7 +50,7 @@ class EcalTest : public ::testing::TestWithParam<TestParams> | |||||
} | ||||||
}; | ||||||
|
||||||
TEST_P(EcalTest, GetPublisherIDsReturnsCorrectNumber) | ||||||
TEST_P(TestFixture, GetPublisherIDsReturnsCorrectNumber) | ||||||
{ | ||||||
{ | ||||||
// create publishers for testing | ||||||
|
@@ -88,7 +88,7 @@ TEST_P(EcalTest, GetPublisherIDsReturnsCorrectNumber) | |||||
ASSERT_EQ(pub_ids2.size(), 0); | ||||||
} | ||||||
|
||||||
TEST_P(EcalTest, PublisherEventCallbackIsTriggered) | ||||||
TEST_P(TestFixture, PublisherEventCallbackIsTriggered) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: all parameters should be named in a function [readability-named-parameter]
Suggested change
|
||||||
{ | ||||||
std::atomic<size_t> created_publisher_num(0); | ||||||
std::atomic<size_t> deleted_publisher_num(0); | ||||||
|
@@ -149,8 +149,8 @@ TEST_P(EcalTest, PublisherEventCallbackIsTriggered) | |||||
|
||||||
// instantiate the test suite with different configurations and publisher counts | ||||||
INSTANTIATE_TEST_SUITE_P( | ||||||
GetPublisherIdTests, | ||||||
EcalTest, | ||||||
core_cpp_registration_public, | ||||||
TestFixture, | ||||||
::testing::Values( | ||||||
TestParams{ 10, []() { | ||||||
// shm | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -33,7 +33,7 @@ struct TestParams | |||||
}; | ||||||
|
||||||
// test class that accepts TestParams as a parameter | ||||||
class EcalTest : public ::testing::TestWithParam<TestParams> | ||||||
class TestFixture : public ::testing::TestWithParam<TestParams> | ||||||
{ | ||||||
protected: | ||||||
void SetUp() override | ||||||
|
@@ -50,7 +50,7 @@ class EcalTest : public ::testing::TestWithParam<TestParams> | |||||
} | ||||||
}; | ||||||
|
||||||
TEST_P(EcalTest, GetSubscriberIDsReturnsCorrectNumber) | ||||||
TEST_P(TestFixture, GetSubscriberIDsReturnsCorrectNumber) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: all parameters should be named in a function [readability-named-parameter]
Suggested change
|
||||||
{ | ||||||
{ | ||||||
// create subscribers for testing | ||||||
|
@@ -88,7 +88,7 @@ TEST_P(EcalTest, GetSubscriberIDsReturnsCorrectNumber) | |||||
ASSERT_EQ(sub_ids2.size(), 0); | ||||||
} | ||||||
|
||||||
TEST_P(EcalTest, SubscriberEventCallbackIsTriggered) | ||||||
TEST_P(TestFixture, SubscriberEventCallbackIsTriggered) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: all parameters should be named in a function [readability-named-parameter]
Suggested change
|
||||||
{ | ||||||
std::atomic<size_t> created_subscriber_num(0); | ||||||
std::atomic<size_t> deleted_subscriber_num(0); | ||||||
|
@@ -149,8 +149,8 @@ TEST_P(EcalTest, SubscriberEventCallbackIsTriggered) | |||||
|
||||||
// instantiate the test suite with different configurations and subscriber counts | ||||||
INSTANTIATE_TEST_SUITE_P( | ||||||
GetSubscriberIdTests, | ||||||
EcalTest, | ||||||
core_cpp_registration_public, | ||||||
TestFixture, | ||||||
::testing::Values( | ||||||
TestParams{ 10, []() { | ||||||
// shm | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: all parameters should be named in a function [readability-named-parameter]