summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStas Negara <snegara@google.com>2015-05-26 17:49:54 -0700
committerStas Negara <snegara@google.com>2015-05-26 17:51:14 -0700
commitc2094cfa0fa74a8606bacad54a26142de09acae1 (patch)
treea1352a4775b689865904dc93c60cdc7092c04698
parentae4d4ec4cb183dee32496411c48f3f96472c006b (diff)
downloadtesting-c2094cfa0fa74a8606bacad54a26142de09acae1.tar.gz
Remove recursive computing of fake coverage.gradle_1.3.0-beta1
It is not used and blows off for a reasonably big number of combinations (e.g., > 15K). Change-Id: I98e949ee8c1edde81b973e2242645e6594db5ed7
-rw-r--r--src/com/google/gct/testing/TwoPanelTree.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/google/gct/testing/TwoPanelTree.java b/src/com/google/gct/testing/TwoPanelTree.java
index 0440064..1f2966b 100644
--- a/src/com/google/gct/testing/TwoPanelTree.java
+++ b/src/com/google/gct/testing/TwoPanelTree.java
@@ -153,6 +153,7 @@ public class TwoPanelTree extends MouseAdapter implements ListSelectionListener,
double logGrowth = 0.02;
Random rand = new Random(42);
+ // TODO: This blows off for a reasonably big number of combinations (e.g., >15K).
private double computeCoverage(int combinations) {
if (combinations == 0) {
return 0;
@@ -164,7 +165,7 @@ public class TwoPanelTree extends MouseAdapter implements ListSelectionListener,
private void updateConfigurationCountLabel() {
int numberOfConfigurations = configuration.getDeviceConfigurationCount();
- double coverage = computeCoverage(configuration.countCombinationsCollapsingOrientation()) * 100d;
+ //double coverage = computeCoverage(configuration.countCombinationsCollapsingOrientation()) * 100d;
//TODO: Put back the covered % after it is not fake (or it is needed for demo purposes).
//myConfigurationCountLabel.setText("<html>Tests will run on <b>" + numberOfConfigurations + " configurations</b> and cover <b>" +
// (int) Math.ceil(coverage) + "%</b> of current users.</html>");