mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-01-13 08:50:40 +08:00
Summary: Making it simpler to setup tests w/ default config and objects. Less LoC in tests, lower setup cost when creating new test suites. Should I changelog? Issue fixed: #183 - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. Closes https://github.com/Instagram/IGListKit/pull/678 Differential Revision: D4921633 Pulled By: rnystrom fbshipit-source-id: fb4d08acb6ed0ba885cf56ce147f70b304301ff1
24 lines
677 B
Objective-C
24 lines
677 B
Objective-C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <IGListKit/IGListKit.h>
|
|
|
|
#define genTestObject(k, v) [[IGTestObject alloc] initWithKey:k value:v]
|
|
|
|
@interface IGTestObject : NSObject <IGListDiffable, NSCopying>
|
|
|
|
- (instancetype)initWithKey:(id <NSCopying>)key value:(id)value;
|
|
|
|
@property (nonatomic, strong, readonly) id key;
|
|
@property (nonatomic, strong) id value;
|
|
|
|
@end
|