123456789101112131415161718192021222324252627282930313233343536 |
- package oglematchers
- func transformDescription(m Matcher, newDesc string) Matcher {
- return &transformDescriptionMatcher{newDesc, m}
- }
- type transformDescriptionMatcher struct {
- desc string
- wrappedMatcher Matcher
- }
- func (m *transformDescriptionMatcher) Description() string {
- return m.desc
- }
- func (m *transformDescriptionMatcher) Matches(c interface{}) error {
- return m.wrappedMatcher.Matches(c)
- }
|