فهرست منبع

internal/nettest: add missing support for "unixgram" to TestableNetwork

Also updates the package description.

Change-Id: I782a9d34d5a35aff92873efc6d511f95686cd5d6
Reviewed-on: https://go-review.googlesource.com/35071
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Mikio Hara 9 سال پیش
والد
کامیت
db8e241947
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      internal/nettest/stack.go

+ 2 - 2
internal/nettest/stack.go

@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package nettest provides utilities for IP testing.
+// Package nettest provides utilities for network testing.
 package nettest // import "golang.org/x/net/internal/nettest"
 
 import (
@@ -62,7 +62,7 @@ func TestableNetwork(network string) bool {
 	// This is based on logic from standard library's
 	// net/platform_test.go.
 	switch network {
-	case "unix":
+	case "unix", "unixgram":
 		switch runtime.GOOS {
 		case "android", "nacl", "plan9", "windows":
 			return false