MCPcopy Create free account
hub / github.com/MikeMirzayanov/testlib / unreadChar

Method unreadChar

testlib.h:1728–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1726 }
1727
1728 void unreadChar(int c) {
1729 if (pos == 0)
1730 __testlib_fail("StringInputStreamReader::unreadChar(int): pos == 0.");
1731 pos--;
1732 if (pos < s.length())
1733 s[pos] = char(c);
1734 }
1735
1736 std::string getName() {
1737 return __testlib_part(s);

Callers

nothing calls this directly

Calls 1

__testlib_failFunction · 0.70

Tested by

no test coverage detected