netbird/relay/messages/id_test.go
2024-07-08 17:38:23 +02:00

14 lines
237 B
Go

package messages
import (
"testing"
)
func TestHashID(t *testing.T) {
hashedID, hashedStringId := HashID("abc")
enc := HashIDToString(hashedID)
if enc != hashedStringId {
t.Errorf("expected %s, got %s", hashedStringId, enc)
}
}