feat: 接入 SSF 实时会话撤销
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package store
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSecurityEventHashesAreStableAndSanitized(t *testing.T) {
|
||||
first := shortSecurityEventHash("sensitive-subject")
|
||||
if first != shortSecurityEventHash("sensitive-subject") || len(first) != 16 || first == "sensitive-subject" {
|
||||
t.Fatalf("unsafe or unstable hash: %q", first)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user