MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / TEST

Function TEST

tests/gtest_match.cpp:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <gtest/gtest.h>
4
5TEST(Match, Match)
6{
7 ASSERT_TRUE(wildcards_match("prefix/suffix", "*/suffix"));
8 ASSERT_TRUE(wildcards_match("prefix/suffix", "prefix/*"));
9 ASSERT_TRUE(wildcards_match("prefix/suffix", "pre*fix"));
10
11 ASSERT_FALSE(wildcards_match("prefix/suffix", "*/suff"));
12 ASSERT_FALSE(wildcards_match("prefix/suffix", "pre/*"));
13 ASSERT_FALSE(wildcards_match("prefix/suffix", "pre*fi"));
14 ASSERT_FALSE(wildcards_match("prefix/suffix", "re*fix"));
15}

Callers

nothing calls this directly

Calls 1

wildcards_matchFunction · 0.85

Tested by

no test coverage detected