diff options
author | Diego <diegolparra@gmail.com> | 2014-12-24 18:55:14 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-12-24 18:58:12 -0300 |
commit | dcfba9454b9891febd4ed24286eb088e85659559 (patch) | |
tree | 101b14efcf611343f359cef107ca1f2c7373f9d3 /kamon-core | |
parent | bcb7f6d4dd86f0c0ff6839c4bc44a8ac7f834419 (diff) | |
download | Kamon-dcfba9454b9891febd4ed24286eb088e85659559.tar.gz Kamon-dcfba9454b9891febd4ed24286eb088e85659559.tar.bz2 Kamon-dcfba9454b9891febd4ed24286eb088e85659559.zip |
= core: include new test case in GlobalPathFilterSpec
Diffstat (limited to 'kamon-core')
-rw-r--r-- | kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala b/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala index e0b837f3..47ef4701 100644 --- a/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala +++ b/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala @@ -40,7 +40,7 @@ class GlobPathFilterSpec extends WordSpecLike with Matchers { filter.accept("/user/something/otherActor") shouldBe false } - "match all expressions in all levels" in { + "match all expressions and crosses the path boundaries" in { val filter = new GlobPathFilter("/user/actor-**") filter.accept("/user/actor-") shouldBe true @@ -50,5 +50,17 @@ class GlobPathFilterSpec extends WordSpecLike with Matchers { filter.accept("/user/something/actor") shouldBe false filter.accept("/user/something/otherActor")shouldBe false } + + "match exactly one characterr" in { + val filter = new GlobPathFilter("/user/actor-?") + + filter.accept("/user/actor-1") shouldBe true + filter.accept("/user/actor-2") shouldBe true + filter.accept("/user/actor-3") shouldBe true + + filter.accept("/user/actor-one") shouldBe false + filter.accept("/user/actor-two") shouldBe false + filter.accept("/user/actor-tree") shouldBe false + } } } |