Plato on Github
Report Home
node_modules/sax/test/flush.js
Maintainability
64.33
Lines of code
13
Difficulty
5.83
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
var parser = require(__dirname).test({ expect: [ ['opentag', {'name':'T', attributes:{}, isSelfClosing: false}], ['text', 'flush'], ['text', 'rest'], ['closetag', 'T'], ] }); parser.write('<T>flush'); parser.flush(); parser.write('rest</T>'); parser.close();