MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / strip

Function strip

__tests__/operator-method-names.test.ts:199–202  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

197 it('C++: a sync that adds such calls to an indexed project finishes, and links them', async () => {
198 // Indexed first without a single call of `operator++` by its name.
199 const strip = (text: string): string => text
200 .replace(' this->operator++();\n', ' ++value;\n')
201 .replace(' c.operator++();\n', '')
202 .replace(' c.operator++(0);\n', '');
203 const root = project({ 'src/counter.hpp': strip(COUNTER_HPP), 'src/counter.cpp': strip(COUNTER_CPP) });
204 const cg = await index(root);
205 expect(callsFrom(cg, 'src/counter.hpp', lineOf(COUNTER_HPP, 'Counter operator++(int)'))).toEqual([]);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected