Package com.google.test.metric.method.Stack2Turing

Examples of com.google.test.metric.method.Stack2Turing.VariableCompactor


    return asList(variables);
  }

  @SuppressWarnings("unchecked")
  public void testCompactionOfPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
    Constant c1 = new Constant("a", JavaType.INT);
    Constant c2 = new Constant("a", JavaType.INT);
    assertEquals(vv(v(c1)), compactor.compact(vv(v(c1), v(c2))));
  }
View Full Code Here


    assertEquals(vv(v(c1)), compactor.compact(vv(v(c1), v(c2))));
  }

  @SuppressWarnings("unchecked")
  public void testNonCompactionOfNonPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
    Constant c1 = new Constant("a", JavaType.OBJECT);
    Constant c2 = new Constant("a", JavaType.fromClass(String.class));
    assertEquals(vv(v(c1), v(c2)), compactor.compact(vv(v(c1), v(c2))));
  }
View Full Code Here

TOP

Related Classes of com.google.test.metric.method.Stack2Turing.VariableCompactor

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.