Examples of LocalAssignment


Examples of com.google.test.metric.method.op.turing.LocalAssignment

    MethodInfo methodInfo = it.next();
    List<Operation> operations = methodInfo.getOperations();
    assertEquals(1, operations.size());
    Operation operation = operations.get(0);
    assertTrue(operation instanceof LocalAssignment);
    LocalAssignment localAssignment = (LocalAssignment) operation;
    assertEquals(1, localAssignment.getLineNumber());
    assertEquals("b", localAssignment.getVariable().getName());
    assertEquals("a", localAssignment.getValue().getName());
  }
View Full Code Here

Examples of com.google.test.metric.method.op.turing.LocalAssignment

    return variable.getType().isDoubleSlot() ? 2 : 1;
  }

  @Override
  public Operation toOperation(List<Variable> input) {
    return new LocalAssignment(lineNumber, variable, input.get(0));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.