You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve?
I want to generate a testsuite with some constrained, like some specific lines that must not be executed in the generated test suite. For example, for the given program below, I want Evosuite to generate the testsuite such that it will not execute the function public T pop(). Is there any parameter already in the tool where I can specify line numbers to execute or not execute? If not, can you please tell me where I need to make changes in the source code so I can get this feature in the tool? It will be beneficial for my work.
public class Stack<T> {
private int capacity = 10;
private int pointer = 0;
private T[] objects = (T[]) new Object[capacity];
public void push(T o) {
if(pointer >= capacity)
throw new RuntimeException("Stack exceeded capacity!");
objects[pointer++] = o;
}
public T pop() {
if(pointer <= 0)
throw new EmptyStackException();
return objects[--pointer];
}
public boolean isEmpty() {
return pointer <= 0;
}
}
The text was updated successfully, but these errors were encountered:
Context
Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve?
I want to generate a testsuite with some constrained, like some specific lines that must not be executed in the generated test suite. For example, for the given program below, I want Evosuite to generate the testsuite such that it will not execute the function public T pop(). Is there any parameter already in the tool where I can specify line numbers to execute or not execute? If not, can you please tell me where I need to make changes in the source code so I can get this feature in the tool? It will be beneficial for my work.
The text was updated successfully, but these errors were encountered: