PET: Partial Evaluation-based Test Case Generator for Bytecode

Target Class and its Dependencies


Class: HeapPriorityQueue

Dependencies:

PET Arguments

a) Choose the method to generate test-cases for:

string(83) "javap -classpath ../../../../examples/net/datastructures -s HeapPriorityQueue 2>&1 " string(122) "Warning: File ../../../../examples/net/datastructures/HeapPriorityQueue.class does not contain class HeapPriorityQueue
" string(42) "Compiled from "HeapPriorityQueue.java"
" string(99) "public class net.datastructures.HeapPriorityQueue implements net.datastructures.PriorityQueue {
" array(4) { [0]=> string(90) "c class net.datastructures.HeapPriorityQueue implements net.datastructures.PriorityQueue {" [1]=> string(2) "c " ["name"]=> string(80) "net.datastructures.HeapPriorityQueue implements net.datastructures.PriorityQueue" [2]=> string(80) "net.datastructures.HeapPriorityQueue implements net.datastructures.PriorityQueue" } <init>()V
<init>(Ljava/util/Comparator;)V
setComparator(Ljava/util/Comparator;)V
size()I
isEmpty()Z
min()Lnet/datastructures/Entry;
insert(Ljava/lang/Object;Ljava/lang/Object;)Lnet/datastructures/Entry;
removeMin()Lnet/datastructures/Entry;
entry(Lnet/datastructures/Position;)Lnet/datastructures/Entry;
key(Lnet/datastructures/Position;)Ljava/lang/Object;
checkKey(Ljava/lang/Object;)V
upHeap(Lnet/datastructures/Position;)V
downHeap(Lnet/datastructures/Position;)V
swapElements(Lnet/datastructures/Position;Lnet/datastructures/Position;)V
toString()Ljava/lang/String;

b) Coverage criterion: Block-k: Depth-k:

c) Get numeric test-cases or path-constraints: Path-constraints Numeric (In this case a range must be especified in step d)

d) Specify the range of integers to take data from: None Range: ..

e) Labeling strategy (see the SWI-Prolog CLPFD library) : ff    leftmost    min    max   

f) References aliasing: Don't alias    Might alias    CLP Heap Solver

g) Verbosity level: 1   2   3

h) Generate JUnit test:    Type: no   minimum complete   Use reflection: no yes

i) Tracing: no   statements   blocks

j) Check code coverage: no   yes

l) Compositional TDG: no   yes