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

Method unreadChar

testlib.h:1959–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957 }
1958
1959 void unreadChar(int c) {
1960 bufferPos--;
1961 if (bufferPos < 0)
1962 __testlib_fail("BufferedFileInputStreamReader::unreadChar(int): bufferPos < 0");
1963 isEof[bufferPos] = (c == EOFC);
1964 buffer[bufferPos] = char(c);
1965 if (c == LF)
1966 line--;
1967 }
1968
1969 std::string getName() {
1970 return name;

Callers

nothing calls this directly

Calls 1

__testlib_failFunction · 0.70

Tested by

no test coverage detected