Skip to content

Commit

Permalink
[sancov] renaming statistics fields.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264349 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
aizatsky-chromium committed Mar 24, 2016
1 parent afb111a commit b5f62ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/tools/sancov/stats.test
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
REQUIRES: x86_64-linux
RUN: sancov -print-coverage-stats %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s

CHECK: all-points: 16
CHECK: cov-points: 7
CHECK: all-fns: 3
CHECK: cov-fns: 2
CHECK: all-edges: 16
CHECK: cov-edges: 7
CHECK: all-functions: 3
CHECK: cov-functions: 2


8 changes: 4 additions & 4 deletions tools/sancov/sancov.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,10 @@ struct CoverageStats {
};

static raw_ostream &operator<<(raw_ostream &OS, const CoverageStats &Stats) {
OS << "all-points: " << Stats.AllPoints << "\n";
OS << "cov-points: " << Stats.CovPoints << "\n";
OS << "all-fns: " << Stats.AllFns << "\n";
OS << "cov-fns: " << Stats.CovFns << "\n";
OS << "all-edges: " << Stats.AllPoints << "\n";
OS << "cov-edges: " << Stats.CovPoints << "\n";
OS << "all-functions: " << Stats.AllFns << "\n";
OS << "cov-functions: " << Stats.CovFns << "\n";
return OS;
}

Expand Down

0 comments on commit b5f62ce

Please sign in to comment.