文件名称:tap-parser:解析测试任何协议
文件大小:187KB
文件格式:ZIP
更新时间:2024-06-06 02:23:58
JavaScript
点击分析器 解析 例子 // stream style const Parser = require ( 'tap-parser' ) const p = new Parser ( results => console . dir ( results ) ) process . stdin . pipe ( p ) 给定一些格式的输入: $ node test.js TAP version 13 # beep ok 1 should be equal ok 2 should be equivalent # boop ok 3 should be equal ok 4 (unnamed assert) 1..4 # tests 4 # pass 4 # ok 解析输出: $ node test.js | node parse.js { ok: true, count: 4, p