MCPcopy Create free account
hub / github.com/AimRT/AimRT / TEST

Function TEST

src/interface/aimrt_module_cpp_interface/util/string_test.cc:10–15  ·  view source on GitHub ↗

StdString -> AimRTStringView

Source from the content-addressed store, hash-verified

8namespace aimrt::util {
9// StdString -> AimRTStringView
10TEST(StringConversionTest, ToAimRTStringViewFromStdString) {
11 std::string str = "test";
12 aimrt_string_view_t view = ToAimRTStringView(str);
13 EXPECT_EQ(view.str, str.c_str());
14 EXPECT_EQ(view.len, str.size());
15}
16// StdStringView -> AimRTStringView
17TEST(StringConversionTest, ToAimRTStringViewFromStdStringView) {
18 std::string_view str_view = "test";

Callers

nothing calls this directly

Calls 3

ToAimRTStringViewFunction · 0.85
ToStdStringViewFunction · 0.85
ToStdStringFunction · 0.85

Tested by

no test coverage detected