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

Function testUUID

tailnet/controllers_test.go:1486–1492  ·  view source on GitHub ↗

testUUID returns a UUID with bytes set as b, but shifted 6 bytes so that service prefixes don't overwrite them.

(b ...byte)

Source from the content-addressed store, hash-verified

1484// testUUID returns a UUID with bytes set as b, but shifted 6 bytes so that service prefixes don't
1485// overwrite them.
1486func testUUID(b ...byte) uuid.UUID {
1487 o := uuid.UUID{}
1488 for i := range b {
1489 o[i+6] = b[i]
1490 }
1491 return o
1492}
1493
1494type fakeDNSSetter struct {
1495 ctx context.Context

Calls

no outgoing calls

Tested by

no test coverage detected