@@ -25,61 +25,58 @@ using ::testing::UnorderedElementsAre;
25
25
26
26
TEST (test_message_definition_cache, can_find_idl_includes) {
27
27
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"
29
29
30
- #include <rosbag2_storage_mcap_test_fixture_interfaces /msg/BasicIdlB.idl>
30
+ #include <rosbag2_storage_mcap_testdata /msg/BasicIdlB.idl>
31
31
32
- module rosbag2_storage_mcap_test_fixture_interfaces {
32
+ module rosbag2_storage_mcap_testdata {
33
33
module msg {
34
34
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;
37
37
};
38
38
};
39
39
};
40
40
41
41
)r" ;
42
42
std::set<std::string> dependencies = parse_dependencies (Format::IDL, sample, " " );
43
- ASSERT_THAT (dependencies,
44
- UnorderedElementsAre (" rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdlA" ,
45
- " rosbag2_storage_mcap_test_fixture_interfaces/msg/BasicIdlB" ));
43
+ ASSERT_THAT (dependencies, UnorderedElementsAre (" rosbag2_storage_mcap_testdata/msg/BasicIdlA" ,
44
+ " rosbag2_storage_mcap_testdata/msg/BasicIdlB" ));
46
45
}
47
46
48
47
TEST (test_message_definition_cache, can_find_msg_deps) {
49
48
MessageDefinitionCache cache;
50
- auto [format, content] =
51
- cache.get_full_text (" rosbag2_storage_mcap_test_fixture_interfaces/ComplexMsg" );
49
+ auto [format, content] = cache.get_full_text (" rosbag2_storage_mcap_testdata/ComplexMsg" );
52
50
ASSERT_EQ (format, Format::MSG);
53
51
ASSERT_EQ (content,
54
- R"r( rosbag2_storage_mcap_test_fixture_interfaces /BasicMsg b
52
+ R"r( rosbag2_storage_mcap_testdata /BasicMsg b
55
53
56
54
================================================================================
57
- MSG: rosbag2_storage_mcap_test_fixture_interfaces /BasicMsg
55
+ MSG: rosbag2_storage_mcap_testdata /BasicMsg
58
56
float32 c
59
57
)r" );
60
58
}
61
59
62
60
TEST (test_message_definition_cache, can_find_idl_deps) {
63
61
MessageDefinitionCache cache;
64
- auto [format, content] =
65
- cache.get_full_text (" rosbag2_storage_mcap_test_fixture_interfaces/msg/ComplexIdl" );
62
+ auto [format, content] = cache.get_full_text (" rosbag2_storage_mcap_testdata/msg/ComplexIdl" );
66
63
EXPECT_EQ (format, Format::IDL);
67
64
EXPECT_EQ (content,
68
65
R"r( ================================================================================
69
- IDL: rosbag2_storage_mcap_test_fixture_interfaces /msg/ComplexIdl
70
- #include "rosbag2_storage_mcap_test_fixture_interfaces /msg/BasicIdl.idl"
66
+ IDL: rosbag2_storage_mcap_testdata /msg/ComplexIdl
67
+ #include "rosbag2_storage_mcap_testdata /msg/BasicIdl.idl"
71
68
72
- module rosbag2_storage_mcap_test_fixture_interfaces {
69
+ module rosbag2_storage_mcap_testdata {
73
70
module msg {
74
71
struct ComplexIdl {
75
- rosbag2_storage_mcap_test_fixture_interfaces ::msg::BasicIdl a;
72
+ rosbag2_storage_mcap_testdata ::msg::BasicIdl a;
76
73
};
77
74
};
78
75
};
79
76
80
77
================================================================================
81
- IDL: rosbag2_storage_mcap_test_fixture_interfaces /msg/BasicIdl
82
- module rosbag2_storage_mcap_test_fixture_interfaces {
78
+ IDL: rosbag2_storage_mcap_testdata /msg/BasicIdl
79
+ module rosbag2_storage_mcap_testdata {
83
80
module msg {
84
81
struct BasicIdl {
85
82
float x;
@@ -92,28 +89,28 @@ module rosbag2_storage_mcap_test_fixture_interfaces {
92
89
TEST (test_message_definition_cache, can_resolve_msg_with_idl_deps) {
93
90
MessageDefinitionCache cache;
94
91
auto [format, content] =
95
- cache.get_full_text (" rosbag2_storage_mcap_test_fixture_interfaces /msg/ComplexMsgDependsOnIdl" );
92
+ cache.get_full_text (" rosbag2_storage_mcap_testdata /msg/ComplexMsgDependsOnIdl" );
96
93
EXPECT_EQ (format, Format::IDL);
97
94
EXPECT_EQ (content,
98
95
R"r( ================================================================================
99
- IDL: rosbag2_storage_mcap_test_fixture_interfaces /msg/ComplexMsgDependsOnIdl
96
+ IDL: rosbag2_storage_mcap_testdata /msg/ComplexMsgDependsOnIdl
100
97
// generated from rosidl_adapter/resource/msg.idl.em
101
- // with input from rosbag2_storage_mcap_test_fixture_interfaces /msg/ComplexMsgDependsOnIdl.msg
98
+ // with input from rosbag2_storage_mcap_testdata /msg/ComplexMsgDependsOnIdl.msg
102
99
// generated code does not contain a copyright notice
103
100
104
- #include "rosbag2_storage_mcap_test_fixture_interfaces /msg/BasicIdl.idl"
101
+ #include "rosbag2_storage_mcap_testdata /msg/BasicIdl.idl"
105
102
106
- module rosbag2_storage_mcap_test_fixture_interfaces {
103
+ module rosbag2_storage_mcap_testdata {
107
104
module msg {
108
105
struct ComplexMsgDependsOnIdl {
109
- rosbag2_storage_mcap_test_fixture_interfaces ::msg::BasicIdl a;
106
+ rosbag2_storage_mcap_testdata ::msg::BasicIdl a;
110
107
};
111
108
};
112
109
};
113
110
114
111
================================================================================
115
- IDL: rosbag2_storage_mcap_test_fixture_interfaces /msg/BasicIdl
116
- module rosbag2_storage_mcap_test_fixture_interfaces {
112
+ IDL: rosbag2_storage_mcap_testdata /msg/BasicIdl
113
+ module rosbag2_storage_mcap_testdata {
117
114
module msg {
118
115
struct BasicIdl {
119
116
float x;
0 commit comments