{"thread":{"id":"52558","subject":"Git Test Coverage Report (Jan 3, 2020)","startedAt":"2020-01-03T18:49:14Z","lastAt":"2020-01-03T18:49:14Z","messageCount":1,"participants":["Derrick Stolee"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"389196","messageId":"53f2ed50-1fdc-6e9d-7916-5a09ad340296@gmail.com","threadId":"52558","inReplyTo":null,"subject":"Git Test Coverage Report (Jan 3, 2020)","fromName":"Derrick Stolee","fromEmail":"stolee@gmail.com","sentAt":"2020-01-03T18:49:09Z","receivedAt":"2020-01-03T18:49:14Z","isPatch":false,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"Here is today's test coverage report.\n\nIt appears that actually enabling the interactive add has actually covered a large\namount of those commits.\n\nThanks,\n-Stolee\n\n[1] https://derrickstolee.github.io/git-test-coverage/reports/2020-01-03-commits.txt\n[2] https://derrickstolee.github.io/git-test-coverage/reports/2020-01-03.txt\n[3] https://derrickstolee.github.io/git-test-coverage/reports/2020-01-03.htm\n\n---\n\npu\tbd265ff036f83d7427ffd08d6b4a93523a9b7b70\njch\t09c6e718d25f033b1feb5d8d43d2871536ca70df\nnext\t88dfdc41939891b16a5f8d00053e9c81d6d73f4e\nmaster\t8679ef24ed64018bb62170c43ce73e0261c0600a\nmaster@{1}\t0a76bd7381ec0dbb7c43776eb6d1ac906bca29e6\n\n\nUncovered code in 'pu' not in 'jch'\n--------------------------------------------------------\n\nCommits introducing uncovered code:\nDenton Liu\tdaf6b9e4 sequencer: use file strbuf for read_oneliner()\nsequencer.c\ndaf6b9e4 439) goto done;\ndaf6b9e4 445) goto done;\n\nDenton Liu\tafc27b82 rebase: use read_oneliner()\nbuiltin/rebase.c\nafc27b82 648) } else if (!read_oneliner(&buf, state_dir_path(\"head\", opts), 0, 1))\n\nDenton Liu\td4e8a655 rebase: generify reset_head()\nbuiltin/rebase.c\nd4e8a655 904) reset_head(the_repository, &opts->orig_head, \"checkout\",\nd4e8a655 905)    opts->head_name, 0,\n\nDenton Liu\t82c638ef rebase: use apply_autostash() from sequencer.c\nbuiltin/rebase.c\n82c638ef 1065) apply_autostash(state_dir_path(\"autostash\", opts));\n\nDenton Liu\tf2096173 reset: extract reset_head() from rebase\nreset.c\nf2096173 37) ret = -1;\nf2096173 38) goto leave_reset_head;\nf2096173 43) goto leave_reset_head;\nf2096173 65) goto leave_reset_head;\nf2096173 71) goto leave_reset_head;\nf2096173 76) goto leave_reset_head;\nf2096173 80) ret = -1;\nf2096173 81) goto leave_reset_head;\nf2096173 89) goto leave_reset_head;\nf2096173 108) } else if (old_orig)\nf2096173 109) delete_ref(NULL, \"ORIG_HEAD\", old_orig, 0);\n\nJohannes Schindelin\t53fa2153 built-in add -p: handle Escape sequences in interactive.singlekey mode\ncompat/terminal.c\n53fa2153 330) if (ch == '\\033' /* ESC */) {\n53fa2153 338) strbuf_splice(buf, buf->len - 1, 1, \"^[\", 2);\n53fa2153 346) struct pollfd pfd = { .fd = 0, .events = POLLIN };\n53fa2153 348) if (poll(&pfd, 1, 500) < 1)\n53fa2153 349) break;\n53fa2153 351) ch = getchar();\n53fa2153 352) if (ch == EOF)\n53fa2153 353) return 0;\n53fa2153 354) strbuf_addch(buf, ch);\n\nJohannes Schindelin\t61131685 built-in add -p: handle Escape sequences more efficiently\ncompat/terminal.c\n61131685 255) static int sequence_entry_cmp(const void *hashmap_cmp_fn_data,\n61131685 260) return strcmp(e1->sequence, keydata ? keydata : e2->sequence);\n61131685 263) static int is_known_escape_sequence(const char *sequence)\n61131685 268) if (!initialized) {\n61131685 269) struct child_process cp = CHILD_PROCESS_INIT;\n61131685 270) struct strbuf buf = STRBUF_INIT;\n61131685 273) hashmap_init(&sequences, (hashmap_cmp_fn)sequence_entry_cmp,\n61131685 276) argv_array_pushl(&cp.args, \"infocmp\", \"-L\", \"-1\", NULL);\n61131685 277) if (pipe_command(&cp, NULL, 0, &buf, 0, NULL, 0))\n61131685 278) strbuf_setlen(&buf, 0);\n61131685 280) for (eol = p = buf.buf; *p; p = eol + 1) {\n61131685 281) p = strchr(p, '=');\n61131685 282) if (!p)\n61131685 283) break;\n61131685 284) p++;\n61131685 285) eol = strchrnul(p, '\\n');\n61131685 287) if (starts_with(p, \"\\\\E\")) {\n61131685 288) char *comma = memchr(p, ',', eol - p);\n61131685 291) p[0] = '^';\n61131685 292) p[1] = '[';\n61131685 293) FLEX_ALLOC_MEM(e, sequence, p, comma - p);\n61131685 294) hashmap_entry_init(&e->entry,\n61131685 295)    strhash(e->sequence));\n61131685 296) hashmap_add(&sequences, &e->entry);\n61131685 298) if (!*eol)\n61131685 299) break;\n61131685 301) initialized = 1;\n61131685 304) return !!hashmap_get_from_hash(&sequences, strhash(sequence), sequence);\n61131685 345) while (!is_known_escape_sequence(buf->buf)) {\n\nJohannes Schindelin\t74e42899 terminal: add a new function to read a single keystroke\ncompat/terminal.c\n74e42899 64) static int enable_non_canonical(void)\n74e42899 66) return disable_bits(ICANON | ECHO);\n74e42899 307) int read_key_without_echo(struct strbuf *buf)\n74e42899 312) if (warning_displayed || enable_non_canonical() < 0) {\n74e42899 313) if (!warning_displayed) {\n74e42899 316) warning_displayed = 1;\n74e42899 319) return strbuf_getline(buf, stdin);\n74e42899 322) strbuf_reset(buf);\n74e42899 323) ch = getchar();\n74e42899 324) if (ch == EOF) {\n74e42899 325) restore_term();\n74e42899 326) return EOF;\n74e42899 328) strbuf_addch(buf, ch);\n74e42899 358) restore_term();\n74e42899 359) return 0;\n\nJohannes Schindelin\taaafd603 terminal: make the code of disable_echo() reusable\ncompat/terminal.c\naaafd603 38) static int disable_bits(tcflag_t bits)\naaafd603 49) t.c_lflag &= ~bits;\naaafd603 59) static int disable_echo(void)\naaafd603 61) return disable_bits(ECHO);\n\nJohannes Schindelin\t60b7e674 built-in add -p: respect the `interactive.singlekey` config setting\nadd-patch.c\n60b7e674 1156) int res = read_key_without_echo(&s->answer);\n60b7e674 1157) printf(\"%s\\n\", res == EOF ? \"\" : s->answer.buf);\n60b7e674 1158) return res;\n\nJonathan Nieder\tee70c128 index: offer advice for unknown index extensions\nread-cache.c\nee70c128 1761) if (advice_unknown_index_extension) {\n\nJosh Steadmon\t6da1f1a9 protocol: advertise multiple supported versions\nremote-curl.c\n6da1f1a9 354) return 0;\n\nMatheus Tavares\tbeebb9d2 object-store: allow threaded access to object reading\npackfile.c\nbeebb9d2 1453) return;\n\nsha1-file.c\nbeebb9d2 1431) return;\nbeebb9d2 1440) return;\n\nPhillip Wood\t430b75f7 commit: give correct advice for empty commit during a rebase\nsequencer.c\n430b75f7 1580)     return -1;\n\n\n\nUncovered code in 'jch' not in 'next'\n--------------------------------------------------------\n\nCommits introducing uncovered code:\nAlban Gruin\t0d50cf5e sequencer: move check_todo_list_from_file() to rebase-interactive.c\nrebase-interactive.c\n0d50cf5e 210) goto out;\n0d50cf5e 215) goto out;\n0d50cf5e 224) fprintf(stderr, _(edit_todo_list_advice));\n\nAlex Torok\tfed842f0 rebase: fix --fork-point with short refname\nbuiltin/merge-base.c\nfed842f0 128) return 1;\n\nJonathan Tan\t9c8a294a sha1-file: remove OBJECT_INFO_SKIP_CACHED\nsha1-file.c\n9c8a294a 1442) *(oi->disk_sizep) = 0;\n9c8a294a 1444) hashclr(oi->delta_base_sha1);\n9c8a294a 1446) strbuf_addstr(oi->type_name, type_name(co->type));\n\nMartin Ågren\t3bf986d6 builtin/config: collect \"value_regexp\" data in a struct\nbuiltin/config.c\n3bf986d6 329) FREE_AND_NULL(cmd_line_value.regexp);\n\nMartin Ågren\t3bcdd852 builtin/config: extract `handle_value_regex()` from `get_value()`\nbuiltin/config.c\n3bcdd852 330) return CONFIG_INVALID_PATTERN;\n3bcdd852 375) goto free_strings;\n\n\n\nUncovered code in 'next' not in 'master'\n--------------------------------------------------------\n\nCommits introducing uncovered code:\nElijah Newren\t4d861fad rebase, sequencer: remove the broken GIT_QUIET handling\nbuiltin/rebase.c\n4d861fad 725) write_file(state_dir_path(\"quiet\", opts), \"%s\", \"\");\n\nElijah Newren\t7ee11336 rebase: extend the options for handling of empty commits\nsequencer.c\n7ee11336 2055) res = allow;\n7ee11336 2056) goto leave;\n7ee11336 2515) opts->drop_redundant_commits =\n7ee11336 2516) git_config_bool_or_int(key, value, &error_flag);\n7ee11336 2521) opts->ask_on_initially_empty =\n7ee11336 2522) git_config_bool_or_int(key, value, &error_flag);\n7ee11336 3066) res |= git_config_set_in_file_gently(opts_file,\n7ee11336 3072) res |= git_config_set_in_file_gently(opts_file,\n7ee11336 4786) continue;\n\nHans Jerry Illikainen\t63add83b gpg-interface: add minTrustLevel as a configuration option\nbuiltin/pull.c\n63add83b 374) return status;\n\ngpg-interface.c\n63add83b 143) return 1;\n63add83b 207) free(trust);\n63add83b 208) goto error;\n63add83b 397) return config_error_nonbool(var);\n\npretty.c\n63add83b 1355) strbuf_addstr(sb, \"never\");\n63add83b 1356) break;\n63add83b 1358) strbuf_addstr(sb, \"marginal\");\n63add83b 1359) break;\n63add83b 1361) strbuf_addstr(sb, \"fully\");\n63add83b 1362) break;\n\nJeff King\t4f0bd8b9 pack-objects: improve partial packfile reuse\nbuiltin/pack-objects.c\n4f0bd8b9 1124) return 1;\n4f0bd8b9 2681) (reuse_packfile_bitmap &&\n4f0bd8b9 2682)  bitmap_walk_contains(bitmap_git, reuse_packfile_bitmap, oid));\n\npack-bitmap.c\n4f0bd8b9 808) return;\n4f0bd8b9 811) return;\n4f0bd8b9 823) return;\n4f0bd8b9 861) i = bitmap_git->pack->num_objects / BITS_IN_EWORD;\n\nJeff King\t7cb9754e pack-objects: introduce pack.allowPackReuse\nbuiltin/pack-objects.c\n7cb9754e 2834) allow_pack_reuse = git_config_bool(k, v);\n7cb9754e 2835) return 0;\n\nJeff King\t7b143c16 pack-bitmap: introduce bitmap_walk_contains()\npack-bitmap.c\n7b143c16 903) return 0;\n\nJohannes Schindelin\t52628f94 built-in add -p: implement the \"checkout\" patch modes\nadd-patch.c\n52628f94 1224) fwrite(diff->buf, diff->len, 1, stderr);\n\nJohannes Schindelin\td2a233cb built-in add -p: prepare for patch modes other than \"stage\"\nadd-patch.c\nd2a233cb 1520)       _(s->mode->help_patch_text));\n\nJohannes Schindelin\t90a6bb98 legacy stash -p: respect the add.interactive.usebuiltin setting\nbuiltin/add.c\n90a6bb98 450) parse_pathspec(&pathspec, 0,\n90a6bb98 456) return run_add_interactive(NULL, \"--patch=stash\", &pathspec);\n\nJohannes Schindelin\t6610e462 built-in stash: use the built-in `git add -p` if so configured\nbuiltin/stash.c\n6610e462 1026) setenv(INDEX_ENVIRONMENT, old_index_env, 1);\n\n\n\nUncovered code in 'master' not in 'master@{1}'\n--------------------------------------------------------\n\nCommits introducing uncovered code:\nElijah Newren\t4fe7e43c rebase: fix saving of --signoff state for am-based rebases\nbuiltin/rebase.c\n4fe7e43c 709) write_file(state_dir_path(\"signoff\", opts), \"--signoff\");\n\n\n"}]}