mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-07 12:22:18 +00:00
refactor: Replace interface{} with any type alias across codebase
- Replace interface{} with any in api_integration_test.go makeRequest method and test response maps
- Replace interface{} with any in logging.go WithField method and all logging function signatures
- Replace interface{} with any in middleware etag.go sync.Map.Range callback
- Replace interface{} with any in middleware redis_ratelimit.go RedisClientInterface and result parsing
- Replace interface{} with any in middleware redis_ratelimit_
This commit is contained in:
@@ -110,7 +110,7 @@ func TestPluginService_Install(t *testing.T) {
|
||||
_, service := setupPluginTest(t)
|
||||
|
||||
t.Run("Install new plugin successfully", func(t *testing.T) {
|
||||
configJSON, _ := json.Marshal(map[string]interface{}{"key": "value"})
|
||||
configJSON, _ := json.Marshal(map[string]any{"key": "value"})
|
||||
input := InstallPluginInput{
|
||||
Name: "new-plugin",
|
||||
Version: "1.0.0",
|
||||
@@ -235,7 +235,7 @@ func BenchmarkPluginService_List(b *testing.B) {
|
||||
db, service := setupPluginTest(&testing.T{})
|
||||
|
||||
// Create test plugins
|
||||
for i := 0; i < 100; i++ {
|
||||
for i := range 100 {
|
||||
plugin := models.Plugin{
|
||||
Name: fmt.Sprintf("plugin-%d", i),
|
||||
Version: "1.0.0",
|
||||
|
||||
Reference in New Issue
Block a user