refactor: Replace interface{} with any and add comprehensive plugin service tests with benchmarks

- Replace interface{} with any in sendDeactivationRequest method signature in es2_helpers.go
- Add plugin_service_test.go with setupPluginTest helper using in-memory SQLite and gorm.AutoMigrate
- Add TestPluginService_List with test cases for all/enabled/disabled/by-type filtering and no matches
- Add TestPluginService_Install with tests for successful install, duplicate prevention, and missing fields
This commit is contained in:
nutcas3
2026-04-20 20:08:23 +03:00
parent f42a753372
commit f8d218448d
4 changed files with 265 additions and 13 deletions
+4 -3
View File
@@ -10,7 +10,8 @@ require (
require (
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
golang.org/x/net v0.51.0 // indirect
golang.org/x/sys v0.41.0 // indirect
github.com/mattn/go-isatty v0.0.21 // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/time v0.15.0 // indirect
)