commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.7k stars 547 forks source link

source code of commitizen includes coverage instrumentation #831

Open DmytroDrachov opened 3 years ago

DmytroDrachov commented 3 years ago

Package version: commitizen@4.2.4 Integrity: sha512-LlZChbDzg3Ir3O2S7jSo/cgWp5/QwylQVr59K4xayVq8S4/RdKzSyJkghAiZZHfhh5t4pxunUoyeg0ml1q/7aw==

Example from dist/git/commit.js:

// ...
function commit(repoPath, message, options, done) {
  cov_2p3l72uoj0.f[0]++;
  let called = (cov_2p3l72uoj0.s[0]++, false); // commit the file by spawning a git process, unless the --hook
  // option was provided. in that case, write the commit message into
  // the .git/COMMIT_EDITMSG file

  cov_2p3l72uoj0.s[1]++;

  if (!options.hookMode) {
    cov_2p3l72uoj0.b[0][0]++;
// ...