(prefix)
| 1882 | |
| 1883 | |
| 1884 | function createShortMethods(prefix) { |
| 1885 | angular.forEach(['GET', 'DELETE', 'JSONP', 'HEAD'], function(method) { |
| 1886 | $httpBackend[prefix + method] = function(url, headers, keys) { |
| 1887 | return $httpBackend[prefix](method, url, undefined, headers, keys); |
| 1888 | }; |
| 1889 | }); |
| 1890 | |
| 1891 | angular.forEach(['PUT', 'POST', 'PATCH'], function(method) { |
| 1892 | $httpBackend[prefix + method] = function(url, data, headers, keys) { |
| 1893 | return $httpBackend[prefix](method, url, data, headers, keys); |
| 1894 | }; |
| 1895 | }); |
| 1896 | } |
| 1897 | } |
| 1898 | |
| 1899 | function MockHttpExpectation(method, url, data, headers, keys) { |
no outgoing calls
no test coverage detected