shouldApplyMock static method
Implementation
static bool? shouldApplyMock(String uri, String method) {
if (!applyMock) return false;
String hash = _generateHash(
TGRequest.prepareUrl(TGRequest.defaultBaseUrl, uri), method);
if (_mockMappings.containsKey(hash)) {
TGMockMappingVO? mockMappingVO = _mockMappings[hash];
if (mockMappingVO != null) return mockMappingVO.applyMock;
}
// Unable to find mock mapping entry
return false;
}