We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82eb403 commit ad079c8Copy full SHA for ad079c8
src/viam/sdk/tests/test_log.cpp
@@ -123,5 +123,15 @@ BOOST_AUTO_TEST_CASE(test_resource_filter) {
123
BOOST_CHECK(errLogs.back().find("sensor error") != std::string::npos);
124
}
125
126
+BOOST_AUTO_TEST_CASE(filename_trim) {
127
+ using namespace log_detail;
128
+
129
+ BOOST_CHECK(trim_filename("") == "");
130
+ BOOST_CHECK(trim_filename("no_delim") == "no_delim");
131
+ BOOST_CHECK(trim_filename("one/slash.cpp") == "one/slash.cpp");
132
+ BOOST_CHECK(trim_filename("a/full/path.cpp") == "full/path.cpp");
133
+ BOOST_CHECK(trim_filename("a/b/c/d.cpp") == "c/d.cpp");
134
+}
135
136
} // namespace sdktests
137
} // namespace viam
0 commit comments