Debian Codegraph @

libgo/go/internal/poll/export_windows_test.go

raw
1 // Copyright 2017 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Export guts for testing on windows.
6 // Since testing imports os and os imports internal/poll,
7 // the internal/poll tests can not be in package poll.
8
9 package poll
10
11 var (
12 LogInitFD = &logInitFD
13 )
14
15 func (fd *FD) IsPartOfNetpoll() bool {
16 return fd.pd.runtimeCtx != 0
17 }