Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 23, 2014 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/c6f5569da6b38b995e9d to your computer and use it in GitHub Desktop.
Save mikeabdullah/c6f5569da6b38b995e9d to your computer and use it in GitHub Desktop.
NSFetchedResultsController stress test config to repro sectioning bug
// Initial Configuration
#define NUMBER_INITIAL_OBJECTS 0
#define USE_PREDICATE 1
#define SPLIT_INTO_SECTIONS 1
// Things to try changing in the model
#define INSERT_OBJECTS 1
#define MAX_INSERTIONS 2
#define DELETE_OBJECTS 1
#define EDIT_INTERVAL 0.5
// How to respond to FRC changes
#define MOVE_ROWS 0
#define RELOAD_ROWS 0
#define DELAY_UPDATING_CELLS 0
// Checks to run
#define CHECK_FETCHED_OBJECTS 1
#define CHECK_SECTIONS 1
#define STRICT_SECTION_OBJECTS_CHECK 1
#define CHECK_CELLS 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment