github.com/JimmyHuang454/JLS-go@v0.0.0-20230831150107-90d536585ba0/internal/poll/export_linux_test.go (about) 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