mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 12:47:28 +08:00
opt: optimize redundant code (#103)
Signed-off-by: charlie <qianglin98@qq.com>
This commit is contained in:
@@ -101,6 +101,19 @@ func TestGenerate(t *testing.T) {
|
||||
generator: WasmpluginGenerator{},
|
||||
isErr: false,
|
||||
},
|
||||
{
|
||||
name: "ServiceEntry",
|
||||
fn: func() (*model.PushContext, any) {
|
||||
ctx := model.NewPushContext()
|
||||
cfg := config.Config{
|
||||
Spec: &networking.ServiceEntry{},
|
||||
}
|
||||
ctx.AllServiceEntries = []config.Config{cfg}
|
||||
return ctx, cfg.Spec
|
||||
},
|
||||
generator: ServiceEntryGenerator{},
|
||||
isErr: false,
|
||||
},
|
||||
{
|
||||
name: "WasmPlugin with wrong config",
|
||||
fn: func() (*model.PushContext, any) {
|
||||
|
||||
Reference in New Issue
Block a user