package mastosan import ( "context" "fmt" "io" "testing" "time" ) func TestHTML2Slackdown(t *testing.T) { for _, tt := range []struct { name string inp, out string }{ {"basic mention", `
test mention @xe so I can see what HTML mastodon makes
`, "test mentionTailscale has recently been notified of security vulnerabilities in the Tailscale Windows client which allow a malicious website visited by a device running Tailscale to change the Tailscale daemon configuration and access information in the Tailscale local and peer APIs.
To patch these vulnerabilities, upgrade Tailscale on your Windows machines to Tailscale v1.32.3 or later, or v1.33.257 or later (unstable).
https://tailscale.com/blog/windows-security-vulnerabilities/
` func BenchmarkHTML2Slackdown(b *testing.B) { b.RunParallel(benchStep) } func benchStep(pb *testing.PB) { for pb.Next() { result, err := Slackdown(context.Background(), msg) if err != nil { panic(err) } fmt.Fprintln(io.Discard, result) } }