package linking import ( "context" "net/url" "testing" glex "github.com/streamplace/glex/runtime" "github.com/stretchr/testify/require" "stream.place/streamplace/pkg/appbsky" "stream.place/streamplace/pkg/placestream" ) func TestInvalidHandleLinkCard(t *testing.T) { for _, tc := range []struct{ did, handle string }{ {"did:plc:2zmxikig2sj7gqaezl5gntae", "handle.invalid"}, {"did:plc:2zmxikig2sj7gqaezl5gntae", ""}, } { did, handle := tc.did, tc.handle t.Run(did+"/"+handle, func(t *testing.T) { linker, err := NewLinker(context.Background(), []byte("