MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / executeNode

Function executeNode

ui/plugins/ui/jasmine/jasmine.js:9760–9794  ·  view source on GitHub ↗
(node, segmentNumber)

Source from the content-addressed store, hash-verified

9758 }
9759
9760 function executeNode(node, segmentNumber) {
9761 if (node.children) {
9762 return {
9763 fn: function(done) {
9764 const onStart = {
9765 fn: function(next) {
9766 nodeStart(node, next)
9767 },
9768 }
9769
9770 queueRunnerFactory({
9771 onComplete: function() {
9772 const args = Array.prototype.slice.call(arguments, [0])
9773 node.cleanupBeforeAfter()
9774 nodeComplete(node, node.getResult(), function() {
9775 done.apply(undefined, args)
9776 })
9777 },
9778 queueableFns: [onStart].concat(wrapChildren(node, segmentNumber)),
9779 userContext: node.sharedUserContext(),
9780 onException: function() {
9781 node.handleException.apply(node, arguments)
9782 },
9783 onMultipleDone: node.onMultipleDone ? node.onMultipleDone.bind(node) : null,
9784 })
9785 },
9786 }
9787 } else {
9788 return {
9789 fn: function(done) {
9790 node.execute(queueRunnerFactory, done, stats[node.id].excluded, failSpecWithNoExpectations)
9791 },
9792 }
9793 }
9794 }
9795
9796 function wrapChildren(node, segmentNumber) {
9797 const result = [],

Callers 1

wrapChildrenFunction · 0.85

Calls 4

queueRunnerFactoryFunction · 0.85
wrapChildrenFunction · 0.85
executeMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected