Skip to content

Commit

Permalink
Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: Lucia Echevarria <[email protected]>
  • Loading branch information
LuciaEchevarria99 committed Oct 14, 2024
1 parent 28cd93b commit a5995d4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion fastddsspy_participants/src/cpp/model/DataStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void DataStreamer::add_data(
EPROSIMA_LOG_INFO(
FASTDDSSPY_DATASTREAMER,
"Received data for topic '" << topic << "'. Note: This topic is not activated. " <<
"Not all topics activated.");
"Not all topics activated.");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ TEST(ModelParserTest, simple_topic_dds_endpoints)
// Obtain information from model
std::vector<spy::participants::SimpleTopicData> result;
result = spy::participants::ModelParser::topics(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::SimpleTopicData> expected_result;
Expand Down Expand Up @@ -2036,7 +2036,7 @@ TEST(ModelParserTest, simple_topic_dds_endpoints_ros2_types)
// Obtain information from model
std::vector<spy::participants::SimpleTopicData> result;
result = spy::participants::ModelParser::topics(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::SimpleTopicData> expected_result;
Expand Down Expand Up @@ -2082,7 +2082,7 @@ TEST(ModelParserTest, simple_topic_ros2_endpoints)
// Obtain information from model
std::vector<spy::participants::SimpleTopicData> result;
result = spy::participants::ModelParser::topics(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::SimpleTopicData> expected_result;
Expand Down Expand Up @@ -2128,7 +2128,7 @@ TEST(ModelParserTest, simple_topic_ros2_endpoints_ros2_types)
// Obtain information from model
std::vector<spy::participants::SimpleTopicData> result;
result = spy::participants::ModelParser::topics(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::SimpleTopicData> expected_result;
Expand Down Expand Up @@ -2171,7 +2171,7 @@ TEST(ModelParserTest, topics_verbose_dds_endpoints)
// Obtain information from model
std::vector<spy::participants::ComplexTopicData> result;
result = spy::participants::ModelParser::topics_verbose(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::ComplexTopicData> expected_result;
Expand Down Expand Up @@ -2240,7 +2240,7 @@ TEST(ModelParserTest, topics_verbose_dds_endpoints_ros2_types)
// Obtain information from model
std::vector<spy::participants::ComplexTopicData> result;
result = spy::participants::ModelParser::topics_verbose(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::ComplexTopicData> expected_result;
Expand Down Expand Up @@ -2312,7 +2312,7 @@ TEST(ModelParserTest, topics_verbose_ros2_endpoints)
// Obtain information from model
std::vector<spy::participants::ComplexTopicData> result;
result = spy::participants::ModelParser::topics_verbose(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::ComplexTopicData> expected_result;
Expand Down Expand Up @@ -2384,7 +2384,7 @@ TEST(ModelParserTest, topics_verbose_ros2_endpoints_ros2_types)
// Obtain information from model
std::vector<spy::participants::ComplexTopicData> result;
result = spy::participants::ModelParser::topics_verbose(
model, ddspipe::core::types::WildcardDdsFilterTopic());
model, ddspipe::core::types::WildcardDdsFilterTopic());

// Create expected return
std::vector<spy::participants::ComplexTopicData> expected_result;
Expand Down
14 changes: 7 additions & 7 deletions fastddsspy_tool/src/cpp/tool/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void Controller::topics_command_(
{
// all participants simple
ddspipe::yaml::set(yml, participants::ModelParser::topics(
*model_, ddspipe::core::types::WildcardDdsFilterTopic()), true);
*model_, ddspipe::core::types::WildcardDdsFilterTopic()), true);
}
else if (arguments.size() == 2)
{
Expand All @@ -309,13 +309,13 @@ void Controller::topics_command_(
{
// Handle 'topics verbose'
ddspipe::yaml::set(yml, participants::ModelParser::topics(
*model_, ddspipe::core::types::WildcardDdsFilterTopic()), false);
*model_, ddspipe::core::types::WildcardDdsFilterTopic()), false);
}
else if (verbose_verbose_argument_(arg_1))
{
// Handle 'topics verbose2'
ddspipe::yaml::set(yml, participants::ModelParser::topics_verbose(
*model_, ddspipe::core::types::WildcardDdsFilterTopic()));
*model_, ddspipe::core::types::WildcardDdsFilterTopic()));
}
else
{
Expand Down Expand Up @@ -381,10 +381,10 @@ void Controller::topics_command_(
else
{
view_.show_error(STR_ENTRY
<< "<"
<< arguments[2]
<< "> is not a valid verbosity mode. "
<< "Valid options are \"v \" and \"vv\".");
<< "<"
<< arguments[2]
<< "> is not a valid verbosity mode. "
<< "Valid options are \"v \" and \"vv\".");

Check warning on line 387 in fastddsspy_tool/src/cpp/tool/Controller.cpp

View check run for this annotation

Codecov / codecov/patch

fastddsspy_tool/src/cpp/tool/Controller.cpp#L385-L387

Added lines #L385 - L387 were not covered by tests
return;
}
}
Expand Down
8 changes: 4 additions & 4 deletions fastddsspy_yaml/src/cpp/YamlWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ void set(
if (is_compact)
{
std::string compact_format =
value.name + " (" + value.type + ") (" +
std::to_string(value.datawriters) + "|" +
std::to_string(value.datareaders) + ") [" +
std::to_string(value.rate.rate) + " " + value.rate.unit + "]";
value.name + " (" + value.type + ") (" +
std::to_string(value.datawriters) + "|" +
std::to_string(value.datareaders) + ") [" +
std::to_string(value.rate.rate) + " " + value.rate.unit + "]";

set_in_tag(yml, "topic", compact_format);
}
Expand Down

0 comments on commit a5995d4

Please sign in to comment.