Experimental
@aws-cdk/integ-tests-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Match Class
Partial and special matching during assertions.
Initializer
ts
new Match()
python
Match()
java
new Match()
csharp
new Match()
go
NewMatch()
Methods
arrayWith(pattern: any[]): { [key: string]: any[] }@staticmethod def array_with(pattern: typing.List[Any]) -> typing.Mapping[str, typing.List[Any]]public static Map<String, List<Object>> arrayWith(List<Object> pattern)public static IDictionary<string, object[]> ArrayWith(object[] pattern)func ArrayWith(Pattern *[]interface{}) *map[string]*[]interface{}static#Matches the specified pattern with the array found in the same relative path of the target.
The set of elements (or matchers) must be in the same order as would be found.
1 parameter
Parameters
patternpatternpatternpatternPattern— the pattern to match.
objectLike(pattern: { [key: string]: any }): { [key: string]: { [key: string]: any } }@staticmethod def object_like(pattern: typing.Mapping[str, Any]) -> typing.Mapping[str, typing.Mapping[str, Any]]public static Map<String, Map<String, Object>> objectLike(Map<String, Object> pattern)public static IDictionary<string, IDictionary<string, object>> ObjectLike(IDictionary<string, object> pattern)func ObjectLike(Pattern *map[string]interface{}) *map[string]*map[string]interface{}static#Matches the specified pattern to an object found in the same relative path of the target.
The keys and their values (or matchers) must be present in the target but the target can be a superset.
1 parameter
Parameters
patternpatternpatternpatternPattern— the pattern to match.
serializedJson(pattern: { [key: string]: any }): { [key: string]: { [key: string]: any } }@staticmethod def serialized_json(pattern: typing.Mapping[str, Any]) -> typing.Mapping[str, typing.Mapping[str, Any]]public static Map<String, Map<String, Object>> serializedJson(Map<String, Object> pattern)public static IDictionary<string, IDictionary<string, object>> SerializedJson(IDictionary<string, object> pattern)func SerializedJson(Pattern *map[string]interface{}) *map[string]*map[string]interface{}static#Matches any string-encoded JSON and applies the specified pattern after parsing it.
1 parameter
Parameters
patternpatternpatternpatternPattern— the pattern to match after parsing the encoded JSON.
stringLikeRegexp(pattern: string): { [key: string]: string }@staticmethod def string_like_regexp(pattern: str) -> typing.Mapping[str, str]public static Map<String, String> stringLikeRegexp(String pattern)public static IDictionary<string, string> StringLikeRegexp(string pattern)func StringLikeRegexp(Pattern *string) *map[string]*stringstatic#Matches targets according to a regular expression.