Package com.google.test.metric

Examples of com.google.test.metric.ParameterInfo


    name = id;
  }

  @Override
  public void endParameterDeclaration() {
    parameters.add(new ParameterInfo(name,
        CppType.fromName(typeSpecifier.get(0))));
    finished();
  }
View Full Code Here


      methodThis = new LocalVariableInfo("this", thisType);
      slots.put(slot++, methodThis);
      localVariables.add((LocalVariableInfo) methodThis);
    }
    for (Type type : parse(desc).getParameters()) {
      ParameterInfo parameterInfo = new ParameterInfo("param_" + slot, type);
      parameters.add(parameterInfo);
      slots.put(slot++, parameterInfo);
      if (JavaType.isDoubleSlot(type)) {
        slot++;
      }
View Full Code Here

    assertEquals("foo", functionFoo.getName());
    ReturnStatement returnStatement = functionFoo.getChild(0);
    assertNotNull(returnStatement);
    List<ParameterInfo> parameters = functionFoo.getParameters();
    assertEquals(2, parameters.size());
    ParameterInfo parameterA = parameters.get(0);
    assertEquals("a", parameterA.getName());
    assertEquals("int", parameterA.getType().toString());
    ParameterInfo parameterB = parameters.get(1);
    assertEquals("b", parameterB.getName());
    assertEquals("int", parameterB.getType().toString());
  }
View Full Code Here

      methodThis = new LocalVariableInfo("this", thisType);
      slots.put(slot++, methodThis);
      localVariables.add((LocalVariableInfo) methodThis);
    }
    for (Type type : parse(desc).getParameters()) {
      ParameterInfo parameterInfo = new ParameterInfo("param_" + slot, type);
      parameters.add(parameterInfo);
      slots.put(slot++, parameterInfo);
      if (type.isDoubleSlot()) {
        slot++;
      }
View Full Code Here

TOP

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

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.