| 137 | |
| 138 | function mockThinkValidator() { |
| 139 | mock('think-validator', class Validator { |
| 140 | constructor(ctx) { |
| 141 | this.ctx = ctx; |
| 142 | } |
| 143 | validate(rules, msgs) { |
| 144 | return rules.mockResult; |
| 145 | } |
| 146 | static addRule() {} |
| 147 | }); |
| 148 | } |
| 149 | |
| 150 | function stop(name) { |
nothing calls this directly
no outgoing calls
no test coverage detected