Package com.google.test.metric

Examples of com.google.test.metric.CostUtil


    // 10
    private static String b = "b";

    // 4
    public void otherCost() {
      new CostUtil().instanceCost4();
    }
View Full Code Here


* a simple class with cost in a setter
* @author alexeagle@google.com (Alex Eagle)
*/
public class HasSetterCost {
  public void setFoo(int foo) {
    new CostUtil().instanceCost4();
  }
View Full Code Here

        hypotheticalCostModel.computeContributionFromMethod(classCost, methodCost));
  }

  private static class Example {
    public Example() {
      new CostUtil().instanceCost4();
    }
View Full Code Here

    public Example() {
      new CostUtil().instanceCost4();
    }

    public int doThing() {
      new CostUtil().instanceCost3();
      return 1;
    }
View Full Code Here

      int a = 0;
      @SuppressWarnings("unused")
      int b = a > 5 ? 3 : 5;
      b = a < 4 ? 4 : 3;
      // Contributes 4
      new CostUtil().instanceCost4();
    }
View Full Code Here

TOP

Related Classes of com.google.test.metric.CostUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.