Add various deleted flags to entities | Add active to subscriptions | Add DeleteUser && DeleteChannel endpoints [skip-tests]
All checks were successful
Build Docker and Deploy / Run Unit-Tests (push) Has been skipped
Build Docker and Deploy / Build Docker Container (push) Successful in 43s
Build Docker and Deploy / Deploy to Server (push) Successful in 16s

This commit is contained in:
2025-04-13 16:12:15 +02:00
parent aac34ef738
commit 8c0f0e3e8f
47 changed files with 2453 additions and 243 deletions

View File

@@ -177,6 +177,14 @@ func AssertTrue(t *testing.T, key string, v bool) {
}
}
func AssertFalse(t *testing.T, key string, v bool) {
if v {
t.Errorf("AssertFalse(%s) failed", key)
t.Error(string(debug.Stack()))
t.FailNow()
}
}
func AssertNotDefault[T comparable](t *testing.T, key string, v T) {
if v == *new(T) {
t.Errorf("AssertNotDefault(%s) failed", key)
@@ -307,7 +315,7 @@ func AssertAny(v any) {
}
func AssertNil(t *testing.T, key string, v any) {
if v != nil {
if !langext.IsNil(v) {
t.Errorf("AssertNil(%s) failed - actual value:\n%+v", key, v)
t.Error(string(debug.Stack()))
t.FailNow()
@@ -315,7 +323,7 @@ func AssertNil(t *testing.T, key string, v any) {
}
func AssertNotNil(t *testing.T, key string, v any) {
if v == nil {
if langext.IsNil(v) {
t.Errorf("AssertNotNil(%s) failed", key)
t.Error(string(debug.Stack()))
t.FailNow()