| 3 | #include <gtest/gtest.h> |
| 4 | |
| 5 | TEST(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 | } |
nothing calls this directly
no test coverage detected