Cucumber test support for alternatives count parameter

This commit is contained in:
Lev Dragunov
2017-01-17 13:49:31 +03:00
committed by Patrick Niklaus
parent 5be6f8959a
commit 421d336b0f
3 changed files with 30 additions and 1 deletions
+5
View File
@@ -180,6 +180,11 @@ module.exports = function () {
return merged;
};
this.alternativesList = (instructions) => {
// alternatives_count come from tracepoints list
return instructions.tracepoints.map(t => t.alternatives_count.toString()).join(',');
};
this.lanesList = (instructions) => {
return this.extractInstructionList(instructions, instruction => {
if( 'lanes' in instruction.intersections[0] )