MCPcopy Create free account
hub / github.com/dresende/node-orm2 / runNext

Function runNext

test/common.js:150–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 };
149
150 var runNext = function () {
151 try {
152 if (before.length > 0) {
153 before(function (err) {
154 if (until(err)) return done(err);
155 return runCurrent();
156 });
157 } else {
158 before();
159 runCurrent();
160 }
161 }
162 catch (e) {
163 handler(e);
164 }
165 };
166
167 if (before.length > 0) {
168 before(function (err) {

Callers 2

handlerFunction · 0.85
common.jsFile · 0.85

Calls 2

runCurrentFunction · 0.85
handlerFunction · 0.85

Tested by

no test coverage detected