zeroOrOneCharacterStringMatcher is a StringMatcher which matches zero or one occurrence of any character. The newline character is matches only if matchNL is set to true.
| 1023 | // zeroOrOneCharacterStringMatcher is a StringMatcher which matches zero or one occurrence |
| 1024 | // of any character. The newline character is matches only if matchNL is set to true. |
| 1025 | type zeroOrOneCharacterStringMatcher struct { |
| 1026 | matchNL bool |
| 1027 | } |
| 1028 | |
| 1029 | func (m *zeroOrOneCharacterStringMatcher) Matches(s string) bool { |
| 1030 | // If there's more than one rune in the string, then it can't match. |
nothing calls this directly
no outgoing calls
no test coverage detected