Source file src/internal/poll/export_linux_test.go

     1  // Copyright 2021 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 linux.
     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  	GetPipe     = getPipe
    13  	PutPipe     = putPipe
    14  	NewPipe     = newPipe
    15  	DestroyPipe = destroyPipe
    16  )
    17  
    18  func GetPipeFds(p *SplicePipe) (int, int) {
    19  	return p.rfd, p.wfd
    20  }
    21  
    22  type SplicePipe = splicePipe
    23  

View as plain text