优化结构

This commit is contained in:
Yvan
2026-08-27 22:33:43 +08:00
parent 5052835fcb
commit e407d3ac10
86 changed files with 3151 additions and 726 deletions
@@ -0,0 +1,15 @@
package system
import (
"context"
"testing"
)
func TestSecurityConfigReturnsNoValueWhenDatabaseIsUnready(t *testing.T) {
data := newTransactionTestData(t)
data.databaseReady.Store(false)
value, err := (&securityRepo{data: data}).SecurityConfig(context.Background())
if err == nil || value != nil {
t.Fatalf("SecurityConfig() = %#v, %v; want nil and error", value, err)
}
}