mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Mark functions as test helpers.
This commit is contained in:
parent
f5261135d2
commit
567183747a
1 changed files with 2 additions and 0 deletions
|
|
@ -26,12 +26,14 @@ import (
|
|||
)
|
||||
|
||||
func assertSessionHasPermission(t *testing.T, session Session, permission Permission) {
|
||||
t.Helper()
|
||||
if !session.HasPermission(permission) {
|
||||
t.Errorf("Session %s doesn't have permission %s", session.PublicId(), permission)
|
||||
}
|
||||
}
|
||||
|
||||
func assertSessionHasNotPermission(t *testing.T, session Session, permission Permission) {
|
||||
t.Helper()
|
||||
if session.HasPermission(permission) {
|
||||
t.Errorf("Session %s has permission %s but shouldn't", session.PublicId(), permission)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue