MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / hookStream

Function hookStream

__tests__/test-GitPktLine.js:77–83  ·  view source on GitHub ↗
(subject, fn)

Source from the content-addressed store, hash-verified

75
76 it('read stream - with error', async () => {
77 const hookStream = (subject, fn) => {
78 const unhook = function (write) {
79 this.write = write
80 }.bind(subject, subject.write)
81 subject.write = fn
82 return unhook
83 }
84 let unhook
85 try {
86 const output = []

Callers 1

test-GitPktLine.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…