Code coverage report for lib/dataStructures/queue.js

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (9 / 9)      Ignored: none     

All files » lib/dataStructures/ » queue.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161   1 12     1   1 22     1 1   1
var stackQueue = require("./stackQueue.js");
 
var queue = function() {
	stackQueue.apply(this, arguments);
};
 
queue.prototype = new stackQueue();
 
queue.prototype.getNext = function() {
	 return this.list.start.data;
}
 
queue.prototype.add = queue.prototype.push;
queue.prototype.remove = queue.prototype.pop;
 
module.exports = queue;