| 44 | } |
| 45 | |
| 46 | void ifstream::close() { |
| 47 | if (mHandle && mHandle->is_open()) { |
| 48 | mHandle->close(); |
| 49 | // After successful close: keep good() = true to match std::ofstream behavior |
| 50 | // This allows fs_stub.hpp's createTextFile to work correctly |
| 51 | if (!mHandle->has_error()) { |
| 52 | mGood = true; |
| 53 | mEof = false; |
| 54 | mFail = false; |
| 55 | } else { |
| 56 | updateState(); |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | ifstream& ifstream::read(char* buffer, fl::size_t count) { |
| 62 | mLastRead = 0; |
no test coverage detected