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

Function splitAndAssert

src/wire/parseRefsAdResponse.js:69–78  ·  view source on GitHub ↗
(line, sep, expected)

Source from the content-addressed store, hash-verified

67}
68
69function splitAndAssert(line, sep, expected) {
70 const split = line.trim().split(sep)
71 if (split.length !== 2) {
72 throw new ParseError(
73 `Two strings separated by '${expected}'`,
74 line.toString('utf8')
75 )
76 }
77 return split
78}

Callers 1

parseRefsAdResponseFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…