| 19 | } |
| 20 | |
| 21 | bool fileReadable(const char* filename) { |
| 22 | int fd = open(filename, O_RDONLY); |
| 23 | if (fd == -1) { |
| 24 | return false; |
| 25 | } |
| 26 | |
| 27 | char buf[1]; |
| 28 | ssize_t r = read(fd, buf, sizeof(buf)); |
| 29 | close(fd); |
| 30 | return r != -1; |
| 31 | } |
| 32 | |
| 33 | int TestRunner::runAllTests() { |
| 34 | int passed = 0; |
no outgoing calls
no test coverage detected