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

Function TestUUIDToByteSlice

tailnet/convert_test.go:93–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func TestUUIDToByteSlice(t *testing.T) {
94 t.Parallel()
95 u := uuid.New()
96 b := tailnet.UUIDToByteSlice(u)
97 u2, err := uuid.FromBytes(b)
98 require.NoError(t, err)
99 require.Equal(t, u, u2)
100
101 b = tailnet.UUIDToByteSlice(uuid.Nil)
102 u2, err = uuid.FromBytes(b)
103 require.NoError(t, err)
104 require.Equal(t, uuid.Nil, u2)
105}
106
107func TestOnlyNodeUpdates(t *testing.T) {
108 t.Parallel()

Callers

nothing calls this directly

Calls 3

UUIDToByteSliceFunction · 0.92
NewMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected