MCPcopy Index your code
hub / github.com/coder/coder / uniqNetName

Function uniqNetName

tailnet/test/integration/network.go:547–554  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

545}
546
547func uniqNetName(t *testing.T) string {
548 t.Helper()
549 netNSName := "cdr_"
550 randStr, err := cryptorand.String(3)
551 require.NoError(t, err, "generate random string for netns name")
552 netNSName += randStr
553 return netNSName
554}
555
556type joinBridgeOpts struct {
557 bridgeNetNS *os.File

Callers 3

SetupNetworkingMethod · 0.85
createFakeInternetFunction · 0.85
SetupNetworkingMethod · 0.85

Calls 2

StringFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected