mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
initial commit
This commit is contained in:
commit
18933c6767
1841 changed files with 810642 additions and 0 deletions
21
vendor/golang.org/x/net/ipv4/mocktransponder_test.go
generated
vendored
Normal file
21
vendor/golang.org/x/net/ipv4/mocktransponder_test.go
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2012 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package ipv4_test
|
||||
|
||||
import (
|
||||
"net"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func acceptor(t *testing.T, ln net.Listener, done chan<- bool) {
|
||||
defer func() { done <- true }()
|
||||
|
||||
c, err := ln.Accept()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
c.Close()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue