Code coverage report for lib\dependencies\ContextDependency.js

Statements: 100% (14 / 14)      Branches: 100% (5 / 5)      Functions: 100% (2 / 2)      Lines: 100% (14 / 14)      Ignored: none     

All files » lib\dependencies\ » ContextDependency.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25        1   1 280 280 280 280 280 280   1   1 1 1719 899 820        
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var Dependency = require("../Dependency");
 
function ContextDependency(request, recursive, regExp) {
	Dependency.call(this);
	this.request = request;
	this.userRequest = request;
	this.recursive = recursive;
	this.regExp = regExp;
	this.Class = ContextDependency;
}
module.exports = ContextDependency;
 
ContextDependency.prototype = Object.create(Dependency.prototype);
ContextDependency.prototype.isEqualResource = function(other) {
	if(!(other instanceof ContextDependency))
		return false;
	return this.request === other.request &&
		this.recursive === other.recursive &&
		this.regExp === other.regExp;
};