- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getNonLoopBackIP (0.22 sec)
-
internal/http/listener_test.go
9A== -----END CERTIFICATE-----`) return tls.X509KeyPair(certPEMBlock, keyPEMBlock) } func getNextPort() string { return strconv.Itoa(int(atomic.AddUint32(&serverPort, 1))) } func getNonLoopBackIP(t *testing.T) string { localIP4 := set.NewStringSet() addrs, err := net.InterfaceAddrs() if err != nil { t.Fatalf("%s. Unable to get IP addresses of this host.", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 17:41:02 UTC 2024 - 11.8K bytes - Viewed (0) -
internal/http/server_test.go
package http import ( "crypto/tls" "fmt" "net/http" "reflect" "testing" "github.com/minio/pkg/v3/certs" ) func TestNewServer(t *testing.T) { nonLoopBackIP := getNonLoopBackIP(t) handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, world") }) testCases := []struct { addrs []string handler http.Handler
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 19 18:42:47 UTC 2024 - 2.5K bytes - Viewed (0)