mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-16 13:00:40 +08:00
Implemented tests for api_acl.go file
This commit is contained in:
@@ -15,6 +15,13 @@ func createEchoVault() *EchoVault {
|
||||
return ev
|
||||
}
|
||||
|
||||
func createEchoVaultWithConfig(conf config.Config) *EchoVault {
|
||||
ev, _ := NewEchoVault(
|
||||
WithConfig(conf),
|
||||
)
|
||||
return ev
|
||||
}
|
||||
|
||||
func presetValue(server *EchoVault, ctx context.Context, key string, value interface{}) error {
|
||||
if err := server.setValues(ctx, map[string]interface{}{key: value}); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user