(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func 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 | |
| 107 | func TestOnlyNodeUpdates(t *testing.T) { |
| 108 | t.Parallel() |
nothing calls this directly
no test coverage detected