SDMockFileManager.h 688 B

123456789101112131415161718
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import <Foundation/Foundation.h>
  9. // This is a mock class to provide custom error for methods
  10. @interface SDMockFileManager : NSFileManager
  11. @property (nonatomic, strong, readonly, nullable) NSError *lastError;
  12. @property (nonatomic, copy, nullable) NSDictionary<NSString *, NSError *> *mockSelectors; // used to specify mocked selectors which will return NO with specify error instead of normal process. If you specify a NSNull, will use nil instead.
  13. @end