# Summary

Class: | WireMock.Matchers.WildcardMatcher
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs
Covered lines: | 17
Uncovered lines: | 0
Coverable lines: | 17
Total lines: | 63
Line coverage: | 100%
Branch coverage: | 100%

# Metrics

Method | Cyclomatic complexity | NPath complexity | Sequence coverage | Branch coverage
--- | --- | --- | --- | ---
GetPatterns() | 0 | 0 | 1 | 0
.ctor(...) | 0 | 0 | 1 | 0
.ctor(...) | 0 | 0 | 1 | 0
.ctor(...) | 0 | 0 | 1 | 0
.ctor(...) | 0 | 0 | 1 | 1

# File(s)

## C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System.Linq;`
|  | `2` |  | `using System.Text.RegularExpressions;`
|  | `3` |  | `using JetBrains.Annotations;`
|  | `4` |  | ``
|  | `5` |  | `namespace WireMock.Matchers`
|  | `6` |  | `{`
|  | `7` |  | `/// <summary>`
|  | `8` |  | `/// WildcardMatcher`
|  | `9` |  | `/// </summary>`
|  | `10` |  | `/// <seealso cref="RegexMatcher" />`
|  | `11` |  | `public class WildcardMatcher : RegexMatcher`
|  | `12` |  | `{`
|  | `13` |  | `private readonly string[] _patterns;`
|  | `14` |  | ``
|  | `15` |  | `/// <summary>`
|  | `16` |  | `/// Initializes a new instance of the <see cref="WildcardMatcher"/> class.`
|  | `17` |  | `/// </summary>`
|  | `18` |  | `/// <param name="pattern">The pattern.</param>`
|  | `19` |  | `/// <param name="ignoreCase">IgnoreCase</param>`
| 31 | `20` |  | `public WildcardMatcher([NotNull] string pattern, bool ignoreCase = false) : this(new[] { pattern }, ignoreCase)`
| 31 | `21` |  | `{`
| 31 | `22` |  | `}`
|  | `23` |  | ``
|  | `24` |  | `/// <summary>`
|  | `25` |  | `/// Initializes a new instance of the <see cref="WildcardMatcher"/> class.`
|  | `26` |  | `/// </summary>`
|  | `27` |  | `/// <param name="matchBehaviour">The match behaviour.</param>`
|  | `28` |  | `/// <param name="pattern">The pattern.</param>`
|  | `29` |  | `/// <param name="ignoreCase">IgnoreCase</param>`
| 279 | `30` |  | `public WildcardMatcher(MatchBehaviour matchBehaviour, [NotNull] string pattern, bool ignoreCase = false) : this(`
| 279 | `31` |  | `{`
| 279 | `32` |  | `}`
|  | `33` |  | ``
|  | `34` |  | `/// <summary>`
|  | `35` |  | `/// Initializes a new instance of the <see cref="WildcardMatcher"/> class.`
|  | `36` |  | `/// </summary>`
|  | `37` |  | `/// <param name="patterns">The patterns.</param>`
|  | `38` |  | `/// <param name="ignoreCase">IgnoreCase</param>`
| 31 | `39` |  | `public WildcardMatcher([NotNull] string[] patterns, bool ignoreCase = false) : this(MatchBehaviour.AcceptOnMatch`
| 31 | `40` |  | `{`
| 31 | `41` |  | `}`
|  | `42` |  | ``
|  | `43` |  | `/// <summary>`
|  | `44` |  | `/// Initializes a new instance of the <see cref="WildcardMatcher"/> class.`
|  | `45` |  | `/// </summary>`
|  | `46` |  | `/// <param name="matchBehaviour">The match behaviour.</param>`
|  | `47` |  | `/// <param name="patterns">The patterns.</param>`
|  | `48` |  | `/// <param name="ignoreCase">IgnoreCase</param>`
| 631 | `49` |  | `public WildcardMatcher(MatchBehaviour matchBehaviour, [NotNull] string[] patterns, bool ignoreCase = false) : ba`
| 315 | `50` |  | `{`
| 315 | `51` |  | `_patterns = patterns;`
| 315 | `52` |  | `}`
|  | `53` |  | ``
|  | `54` |  | `/// <inheritdoc cref="IStringMatcher.GetPatterns"/>`
|  | `55` |  | `public override string[] GetPatterns()`
| 3 | `56` |  | `{`
| 3 | `57` |  | `return _patterns;`
| 3 | `58` |  | `}`
|  | `59` |  | ``
|  | `60` |  | `/// <inheritdoc cref="IMatcher.Name"/>`
| 2 | `61` |  | `public override string Name => "WildcardMatcher";`
|  | `62` |  | `}`
|  | `63` |  | `}`

# Methods/Properties

.ctor(System.String,System.Boolean)
.ctor(WireMock.Matchers.MatchBehaviour,System.String,System.Boolean)
.ctor(System.String[],System.Boolean)
.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean)
GetPatterns()
Name()