github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/protocol/keybase1/extras_amd64_test.go (about) 1 // Copyright 2017 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 package keybase1 5 6 import ( 7 "testing" 8 9 "github.com/stretchr/testify/require" 10 ) 11 12 func TestSize(t *testing.T) { 13 require.Equal(t, UID("a").Size(), 9) 14 require.Equal(t, TeamID("a").Size(), 9) 15 require.Equal(t, UserOrTeamID("a").Size(), 9) 16 kid := KID("a") 17 require.Equal(t, kid.Size(), 9) 18 }