Blame tests/status/status_data.h

Packit Service 20376f
#include "status_helpers.h"
Packit Service 20376f
Packit Service 20376f
// A utf-8 string with 83 characters, but 249 bytes.
Packit Service 20376f
static const char *longname = "\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97\xe5\x8f\x97";
Packit Service 20376f
Packit Service 20376f
Packit Service 20376f
/* entries for a plain copy of tests/resources/status */
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths0[] = {
Packit Service 20376f
	"file_deleted",
Packit Service 20376f
	"ignored_file",
Packit Service 20376f
	"modified_file",
Packit Service 20376f
	"new_file",
Packit Service 20376f
	"staged_changes",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_file_deleted",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
Packit Service 20376f
	"subdir/deleted_file",
Packit Service 20376f
	"subdir/modified_file",
Packit Service 20376f
	"subdir/new_file",
Packit Service 20376f
Packit Service 20376f
	"\xe8\xbf\x99",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses0[] = {
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_IGNORED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED | GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED | GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED | GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const int entry_count0 = 16;
Packit Service 20376f
Packit Service 20376f
/* entries for a copy of tests/resources/status with all content
Packit Service 20376f
 * deleted from the working directory
Packit Service 20376f
 */
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths2[] = {
Packit Service 20376f
	"current_file",
Packit Service 20376f
	"file_deleted",
Packit Service 20376f
	"modified_file",
Packit Service 20376f
	"staged_changes",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_file_deleted",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
	"subdir.txt",
Packit Service 20376f
	"subdir/current_file",
Packit Service 20376f
	"subdir/deleted_file",
Packit Service 20376f
	"subdir/modified_file",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses2[] = {
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const int entry_count2 = 15;
Packit Service 20376f
Packit Service 20376f
/* entries for a copy of tests/resources/status with some mods */
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths3_icase[] = {
Packit Service 20376f
	".HEADER",
Packit Service 20376f
	"42-is-not-prime.sigh",
Packit Service 20376f
	"current_file",
Packit Service 20376f
	"current_file/",
Packit Service 20376f
	"file_deleted",
Packit Service 20376f
	"ignored_file",
Packit Service 20376f
	"modified_file",
Packit Service 20376f
	"new_file",
Packit Service 20376f
	"README.md",
Packit Service 20376f
	"staged_changes",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_file_deleted",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
	"subdir",
Packit Service 20376f
	"subdir/current_file",
Packit Service 20376f
	"subdir/deleted_file",
Packit Service 20376f
	"subdir/modified_file",
Packit Service 20376f
	"\xe8\xbf\x99",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses3_icase[] = {
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_IGNORED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW | GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths3[] = {
Packit Service 20376f
	".HEADER",
Packit Service 20376f
	"42-is-not-prime.sigh",
Packit Service 20376f
	"README.md",
Packit Service 20376f
	"current_file",
Packit Service 20376f
	"current_file/",
Packit Service 20376f
	"file_deleted",
Packit Service 20376f
	"ignored_file",
Packit Service 20376f
	"modified_file",
Packit Service 20376f
	"new_file",
Packit Service 20376f
	"staged_changes",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_file_deleted",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
	"subdir",
Packit Service 20376f
	"subdir/current_file",
Packit Service 20376f
	"subdir/deleted_file",
Packit Service 20376f
	"subdir/modified_file",
Packit Service 20376f
	"\xe8\xbf\x99",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses3[] = {
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_IGNORED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW | GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const int entry_count3 = 22;
Packit Service 20376f
Packit Service 20376f
Packit Service 20376f
/* entries for a copy of tests/resources/status with some mods
Packit Service 20376f
 * and different options to the status call
Packit Service 20376f
 */
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths4[] = {
Packit Service 20376f
	".new_file",
Packit Service 20376f
	"current_file",
Packit Service 20376f
	"current_file/current_file",
Packit Service 20376f
	"current_file/modified_file",
Packit Service 20376f
	"current_file/new_file",
Packit Service 20376f
	"file_deleted",
Packit Service 20376f
	"modified_file",
Packit Service 20376f
	"new_file",
Packit Service 20376f
	"staged_changes",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_file_deleted",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
	"subdir",
Packit Service 20376f
	"subdir/current_file",
Packit Service 20376f
	"subdir/deleted_file",
Packit Service 20376f
	"subdir/modified_file",
Packit Service 20376f
	"zzz_new_dir/new_file",
Packit Service 20376f
	"zzz_new_file",
Packit Service 20376f
	"\xe8\xbf\x99",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses4[] = {
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW | GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const int entry_count4 = 23;
Packit Service 20376f
Packit Service 20376f
Packit Service 20376f
/* entries for a copy of tests/resources/status with options
Packit Service 20376f
 * passed to the status call in order to only get the differences
Packit Service 20376f
 * between the HEAD and the index (changes to be committed)
Packit Service 20376f
 */
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths5[] = {
Packit Service 20376f
	"staged_changes",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_file_deleted",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses5[] = {
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_MODIFIED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_DELETED,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
	GIT_STATUS_INDEX_NEW,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const int entry_count5 = 8;
Packit Service 20376f
Packit Service 20376f
Packit Service 20376f
/* entries for a copy of tests/resources/status with options
Packit Service 20376f
 * passed to the status call in order to only get the differences
Packit Service 20376f
 * between the workdir and the index (changes not staged, untracked files)
Packit Service 20376f
 */
Packit Service 20376f
Packit Service 20376f
static const char *entry_paths6[] = {
Packit Service 20376f
	"file_deleted",
Packit Service 20376f
	"ignored_file",
Packit Service 20376f
	"modified_file",
Packit Service 20376f
	"new_file",
Packit Service 20376f
	"staged_changes_file_deleted",
Packit Service 20376f
	"staged_changes_modified_file",
Packit Service 20376f
	"staged_delete_modified_file",
Packit Service 20376f
	"staged_new_file_deleted_file",
Packit Service 20376f
	"staged_new_file_modified_file",
Packit Service 20376f
	"subdir/deleted_file",
Packit Service 20376f
	"subdir/modified_file",
Packit Service 20376f
	"subdir/new_file",
Packit Service 20376f
	"\xe8\xbf\x99",
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const unsigned int entry_statuses6[] = {
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_IGNORED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_DELETED,
Packit Service 20376f
	GIT_STATUS_WT_MODIFIED,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
	GIT_STATUS_WT_NEW,
Packit Service 20376f
};
Packit Service 20376f
Packit Service 20376f
static const int entry_count6 = 13;