MCPcopy
hub / github.com/amark/gun / cb

Function cb

test/common.js:4822–4837  ·  view source on GitHub ↗
(e,d,f,a)

Source from the content-addressed store, hash-verified

4820 s.soul = 'a';
4821 Gun.on('put', {$: gun, put: Gun.graph.ify({b: 1, c: 2}, s)});
4822 function cb(e,d,f,a){
4823 if('b' === f && 1 === d){
4824 done.b = true;
4825 }
4826 if('c' === f && 2 === d){
4827 done.c = true;
4828 }
4829 if('d' === f && !d){
4830 done.d = true;
4831 }
4832 if(done.done){ return }
4833 if(done.b && done.c && done.d){
4834 done.done = true;
4835 done();
4836 }
4837 }
4838 gun.get('a').path('b').any(cb);//.err(cb).not(cb).on(cb).val(cb);
4839 gun.get('a').path('c').any(cb);//.err(cb).not(cb).on(cb).val(cb);
4840 gun.get('a').path('d').any(cb);//.err(cb).not(cb).on(cb).val(cb);

Callers 15

mocha.jsFile · 0.70
afterTransformFunction · 0.70
writeAfterEndFunction · 0.70
validChunkFunction · 0.70
onwriteErrorFunction · 0.70
afterWriteFunction · 0.70
fFunction · 0.70
common.jsFile · 0.70
sea.jsFile · 0.50
putErrFunction · 0.50
soulFunction · 0.50
stunFunction · 0.50

Calls 1

doneFunction · 0.70

Tested by

no test coverage detected