Skip to content

Commit

Permalink
Merge pull request #303 from IlnurHA/incorrectRFVHNaming
Browse files Browse the repository at this point in the history
Fixed naming for RFVH
  • Loading branch information
yegor256 committed May 3, 2024
2 parents 4f9d096 + 880e34c commit f2e9ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metrics/rfvh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ else
rfvh=0
fi

echo "rfvh ${rfvh} Relative File Volatility by Hits for file" > "${output}"
echo "RFVH ${rfvh} Relative File Volatility by Hits for file" > "${output}"
6 changes: 3 additions & 3 deletions tests/metrics/test-rfvh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ stdout=$2
git add "${java1}"
git commit --quiet -m "first commit"
${metric_script_path} "${java1}" "stdout"
grep "rfvh 1" "stdout"
grep "RFVH 1" "stdout"

printf "class Foo {}" > "${java2}"
git add "${java2}"
git commit --quiet -m "+second commit"
${metric_script_path} "${java1}" "stdout"
grep "rfvh 0.5" "stdout"
grep "RFVH 0.5" "stdout"

printf "class Foo {}" > "${java3}"
git add "${java3}"
git commit --quiet -m "-third commit"
${metric_script_path} "${java1}" "stdout"
grep "rfvh 0.33" "stdout"
grep "RFVH 0.33" "stdout"
} > "${stdout}" 2>&1
echo "👍🏻 Correctly calculated relative file volatility by hits"

0 comments on commit f2e9ac0

Please sign in to comment.