Skip to content
Snippets Groups Projects
Unverified Commit e85802c5 authored by Steven Macenski's avatar Steven Macenski Committed by GitHub
Browse files

Ignore codecov paths in tests (#1671)

* Ignore codecov paths in tests

* adding missing string test case for stripping leading slash

* Update test_string_utils.cpp

* Update test_string_utils.cpp

* Update codecov.yml

* Update codecov.yml

* Update codecov.yml

* Update codecov.yml
parent c64ee48b
No related branches found
No related tags found
No related merge requests found
fixes:
- "src/navigation2/::"
ignore:
- "*/**/test/*" # ignore package test directories, e.g. nav2_dwb_controller/costmap_queue/tests
- "*/test/**/*" # ignore package test directories, e.g. nav2_costmap_2d/tests
......@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <string>
#include "nav2_util/string_utils.hpp"
#include "gtest/gtest.h"
......@@ -26,4 +28,5 @@ TEST(Split, SplitFunction)
ASSERT_EQ(split("foo:bar:", ':'), Tokens({"foo", "bar", ""}));
ASSERT_EQ(split(":", ':'), Tokens({"", ""}));
ASSERT_EQ(split("foo::bar", ':'), Tokens({"foo", "", "bar"}));
ASSERT_TRUE(nav2_util::strip_leading_slash(std::string("/hi")) == std::string("hi"));
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment