Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter memorizes the number of file descriptors and compare them.
func Matching ¶
Matching returns a count of the file descriptors matching the given string (not a regex). Also returns a Counter that can be used to check the delta of file descriptors after this point.
Currently only works on systems that have the lsof command available.
see https://groups.google.com/forum/#!topic/golang-nuts/c0AnWXjzNIA
func (*Counter) AssertDelta ¶
AssertDelta asserts that the number of file descriptors added/removed since Counter was created equals the given number.
Click to show internal directories.
Click to hide internal directories.