style: инициализировать слайсы через make
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -140,13 +140,8 @@ func TestGenerateConfig_AllKeys(t *testing.T) {
|
||||
}
|
||||
|
||||
out := buf.String()
|
||||
requiredKeys := []string{
|
||||
"host", "port", "user", "password", "database", "sslmode", "exclude_tables",
|
||||
"dir", "retention_days", "cron",
|
||||
"pq_scheme", "classical_scheme",
|
||||
"pq_public_key_path", "classical_public_key_path",
|
||||
"healthz", "log",
|
||||
}
|
||||
requiredKeys := make([]string, 0, 16)
|
||||
requiredKeys = append(requiredKeys, "host", "port", "user", "password", "database", "sslmode", "exclude_tables", "dir", "retention_days", "cron", "pq_scheme", "classical_scheme", "pq_public_key_path", "classical_public_key_path", "healthz", "log")
|
||||
|
||||
for _, key := range requiredKeys {
|
||||
if !strings.Contains(out, key) {
|
||||
|
||||
Reference in New Issue
Block a user