All the predicates that determine whether a stub matches a request
- Source:
Methods
(inner) evaluate(predicate, request, encoding, logger, imposterState) → {boolean}
Resolves all predicate keys in given predicate
Parameters:
Name | Type | Description |
---|---|---|
predicate |
Object | The predicate configuration |
request |
Object | The protocol request object |
encoding |
string | utf8 or base64 |
logger |
Object | The logger, useful for debugging purposes |
imposterState |
Object | The current state for the imposter |
- Source:
Returns:
- Type
- boolean