Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 6275e32

Browse files
committed
rename test_fixture_interfaces package to testdata
Signed-off-by: James Smith <[email protected]>
1 parent 295ae9b commit 6275e32

File tree

14 files changed

+46
-46
lines changed

14 files changed

+46
-46
lines changed

rosbag2_storage_mcap/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<test_depend>rosbag2_cpp</test_depend>
2424
<test_depend>rosbag2_test_common</test_depend>
2525
<test_depend>std_msgs</test_depend>
26-
<test_depend>rosbag2_storage_mcap_test_fixture_interfaces</test_depend>
26+
<test_depend>rosbag2_storage_mcap_testdata</test_depend>
2727

2828
<export>
2929
<build_type>ament_cmake</build_type>

rosbag2_storage_mcap/test/rosbag2_storage_mcap/test_message_definition_cache.cpp

+25-25
Original file line numberDiff line numberDiff line change
@@ -25,61 +25,61 @@ using ::testing::UnorderedElementsAre;
2525

2626
TEST(test_message_definition_cache, can_find_idl_includes) {
2727
const char sample[] = R"r(
28-
#include "rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdlA.idl"
28+
#include "rosbag2_storage_mcap_testdata/msg/BasicIdlA.idl"
2929
30-
#include <rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdlB.idl>
30+
#include <rosbag2_storage_mcap_testdata/msg/BasicIdlB.idl>
3131
32-
module rosbag2_storage_mcap_test_fixture_interfaces {
32+
module rosbag2_storage_mcap_testdata {
3333
module msg {
3434
struct ComplexIdl {
35-
rosbag2_storage_mcap_test_fixture_interfaces::msg::BasicIdlA a;
36-
rosbag2_storage_mcap_test_fixture_interfaces::msg::BasicIdlB b;
35+
rosbag2_storage_mcap_testdata::msg::BasicIdlA a;
36+
rosbag2_storage_mcap_testdata::msg::BasicIdlB b;
3737
};
3838
};
3939
};
4040
4141
)r";
4242
std::set<std::string> dependencies = parse_dependencies(Format::IDL, sample, "");
4343
ASSERT_THAT(dependencies,
44-
UnorderedElementsAre("rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdlA",
45-
"rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdlB"));
44+
UnorderedElementsAre("rosbag2_storage_mcap_testdata/msg/BasicIdlA",
45+
"rosbag2_storage_mcap_testdata/msg/BasicIdlB"));
4646
}
4747

4848
TEST(test_message_definition_cache, can_find_msg_deps) {
4949
MessageDefinitionCache cache;
5050
auto [format, content] =
51-
cache.get_full_text("rosbag2_storage_mcap_test_fixture_interfaces/ComplexMsg");
51+
cache.get_full_text("rosbag2_storage_mcap_testdata/ComplexMsg");
5252
ASSERT_EQ(format, Format::MSG);
5353
ASSERT_EQ(content,
54-
R"r(rosbag2_storage_mcap_test_fixture_interfaces/BasicMsg b
54+
R"r(rosbag2_storage_mcap_testdata/BasicMsg b
5555
5656
================================================================================
57-
MSG: rosbag2_storage_mcap_test_fixture_interfaces/BasicMsg
57+
MSG: rosbag2_storage_mcap_testdata/BasicMsg
5858
float32 c
5959
)r");
6060
}
6161

6262
TEST(test_message_definition_cache, can_find_idl_deps) {
6363
MessageDefinitionCache cache;
6464
auto [format, content] =
65-
cache.get_full_text("rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexIdl");
65+
cache.get_full_text("rosbag2_storage_mcap_testdata/msg/ComplexIdl");
6666
EXPECT_EQ(format, Format::IDL);
6767
EXPECT_EQ(content,
6868
R"r(================================================================================
69-
IDL: rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexIdl
70-
#include "rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdl.idl"
69+
IDL: rosbag2_storage_mcap_testdata/msg/ComplexIdl
70+
#include "rosbag2_storage_mcap_testdata/msg/BasicIdl.idl"
7171
72-
module rosbag2_storage_mcap_test_fixture_interfaces {
72+
module rosbag2_storage_mcap_testdata {
7373
module msg {
7474
struct ComplexIdl {
75-
rosbag2_storage_mcap_test_fixture_interfaces::msg::BasicIdl a;
75+
rosbag2_storage_mcap_testdata::msg::BasicIdl a;
7676
};
7777
};
7878
};
7979
8080
================================================================================
81-
IDL: rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdl
82-
module rosbag2_storage_mcap_test_fixture_interfaces {
81+
IDL: rosbag2_storage_mcap_testdata/msg/BasicIdl
82+
module rosbag2_storage_mcap_testdata {
8383
module msg {
8484
struct BasicIdl {
8585
float x;
@@ -92,28 +92,28 @@ module rosbag2_storage_mcap_test_fixture_interfaces {
9292
TEST(test_message_definition_cache, can_resolve_msg_with_idl_deps) {
9393
MessageDefinitionCache cache;
9494
auto [format, content] =
95-
cache.get_full_text("rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexMsgDependsOnIdl");
95+
cache.get_full_text("rosbag2_storage_mcap_testdata/msg/ComplexMsgDependsOnIdl");
9696
EXPECT_EQ(format, Format::IDL);
9797
EXPECT_EQ(content,
9898
R"r(================================================================================
99-
IDL: rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexMsgDependsOnIdl
99+
IDL: rosbag2_storage_mcap_testdata/msg/ComplexMsgDependsOnIdl
100100
// generated from rosidl_adapter/resource/msg.idl.em
101-
// with input from rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexMsgDependsOnIdl.msg
101+
// with input from rosbag2_storage_mcap_testdata/msg/ComplexMsgDependsOnIdl.msg
102102
// generated code does not contain a copyright notice
103103
104-
#include "rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdl.idl"
104+
#include "rosbag2_storage_mcap_testdata/msg/BasicIdl.idl"
105105
106-
module rosbag2_storage_mcap_test_fixture_interfaces {
106+
module rosbag2_storage_mcap_testdata {
107107
module msg {
108108
struct ComplexMsgDependsOnIdl {
109-
rosbag2_storage_mcap_test_fixture_interfaces::msg::BasicIdl a;
109+
rosbag2_storage_mcap_testdata::msg::BasicIdl a;
110110
};
111111
};
112112
};
113113
114114
================================================================================
115-
IDL: rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdl
116-
module rosbag2_storage_mcap_test_fixture_interfaces {
115+
IDL: rosbag2_storage_mcap_testdata/msg/BasicIdl
116+
module rosbag2_storage_mcap_testdata {
117117
module msg {
118118
struct BasicIdl {
119119
float x;

rosbag2_storage_mcap_test_fixture_interfaces/CHANGELOG.rst

-6
This file was deleted.

rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexIdl.idl

-9
This file was deleted.

rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexMsg.msg

-1
This file was deleted.

rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexMsgDependsOnIdl.msg

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package rosbag2_storage_mcap_testdata
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
5+
0.4.0 (2022-10-06)
6+
------------------

rosbag2_storage_mcap_test_fixture_interfaces/CMakeLists.txt rosbag2_storage_mcap_testdata/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.8)
2-
project(rosbag2_storage_mcap_test_fixture_interfaces)
2+
project(rosbag2_storage_mcap_testdata)
33

44
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
55
add_compile_options(-Wall -Wextra -Wpedantic)

rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdl.idl rosbag2_storage_mcap_testdata/msg/BasicIdl.idl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module rosbag2_storage_mcap_test_fixture_interfaces {
1+
module rosbag2_storage_mcap_testdata {
22
module msg {
33
struct BasicIdl {
44
float x;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "rosbag2_storage_mcap_testdata/msg/BasicIdl.idl"
2+
3+
module rosbag2_storage_mcap_testdata {
4+
module msg {
5+
struct ComplexIdl {
6+
rosbag2_storage_mcap_testdata::msg::BasicIdl a;
7+
};
8+
};
9+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rosbag2_storage_mcap_testdata/BasicMsg b
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rosbag2_storage_mcap_testdata/BasicIdl a

rosbag2_storage_mcap_test_fixture_interfaces/package.xml rosbag2_storage_mcap_testdata/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
4-
<name>rosbag2_storage_mcap_test_fixture_interfaces</name>
4+
<name>rosbag2_storage_mcap_testdata</name>
55
<version>0.4.0</version>
66
<description>message definition test fixtures for MCAP schema recording</description>
77
<maintainer email="[email protected]">James Smith</maintainer>

0 commit comments

Comments
 (0)