-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias.go
32 lines (22 loc) · 803 Bytes
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package matcher
import (
"go.nhat.io/matcher/v2"
)
// Matcher determines if the actual matches the expectation.
type Matcher = matcher.Matcher
// ExactMatcher matches by exact string.
type ExactMatcher = matcher.ExactMatcher
// Callback matches by calling a function.
type Callback = matcher.Callback
// Match returns a matcher according to its type.
var Match = matcher.Match
// JSON matches two json strings with <ignore-diff> support.
var JSON = matcher.JSON
// Regex matches two strings by using regex.
var Regex = matcher.Regex
// RegexPattern matches two strings by using regex.
var RegexPattern = matcher.RegexPattern
// Exact matches two objects by their exact values.
var Exact = matcher.Exact
// IsNotEmpty checks whether the value is not empty.
var IsNotEmpty = matcher.IsNotEmpty