MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / basefds

Function basefds

pkg/funclet/command/command_test.go:295–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293}
294
295func basefds() uintptr {
296 n := os.Stderr.Fd() + 1
297 // The poll (epoll/kqueue) descriptor can be numerically
298 // either between stderr and the testlog-fd, or after
299 // testlog-fd.
300 // if poll.IsPollDescriptor(n) {
301 // n++
302 // }
303 for _, arg := range os.Args {
304 if strings.HasPrefix(arg, "-test.testlogfile=") {
305 n++
306 }
307 }
308 return n
309}

Callers 1

TestHelperProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected