You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, BackendConnMgr calls structs Authenticator and CmdProcessor directly, which makes them coupled. It makes UT more complicated, and it will be hard to extend this module. E.g, we may override some behaviors through plugins.
We can define interface Auth for Authenticator and CmdEngine for CmdProcessor. UT can mock implementations and plugins can override the default implementation by defining another implementation.
The text was updated successfully, but these errors were encountered:
Development Task
Currently,
BackendConnMgr
calls structsAuthenticator
andCmdProcessor
directly, which makes them coupled. It makes UT more complicated, and it will be hard to extend this module. E.g, we may override some behaviors through plugins.We can define interface
Auth
forAuthenticator
andCmdEngine
forCmdProcessor
. UT can mock implementations and plugins can override the default implementation by defining another implementation.The text was updated successfully, but these errors were encountered: