MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / fileReadable

Function fileReadable

test/native/testRunner.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool 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
33int TestRunner::runAllTests() {
34 int passed = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected