Plato on Github
Report Home
node_modules/sax/test/entity-mega.js
Maintainability
58.72
Lines of code
16
Difficulty
8.96
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
var sax = require('../'); var xml = '<r>'; var text = ''; for (var i in sax.ENTITIES) { xml += '&' + i + ';' text += sax.ENTITIES[i] } xml += '</r>' require(__dirname).test({ xml: xml, expect: [ ['opentag', {'name':'R', attributes:{}, isSelfClosing: false}], ['text', text], ['closetag', 'R'] ] });