MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreach

Function foreach

src/tests/subprocess_tests.cpp:1092–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090
1091 vector<string> tokens = strings::tokenize(output.get(), "\n");
1092 foreach (const string& fdString, tokens) {
1093 Try<int_fd> fd = numify<int_fd>(fdString);
1094 ASSERT_SOME(fd);
1095
1096 fds.insert(fd.get());
1097 }
1098
1099 // The subprocess should always have the stdio file descriptors.
1100 EXPECT_TRUE(fds.contains(STDIN_FILENO));

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected