@@ -405,24 +405,24 @@ var _ = Describe("Cfg", func() {
405
405
})
406
406
407
407
It ("DecodePluginConfig should fail for no plugin config object" , func () {
408
- var pluginCfg PluginConfig
409
- err := c0 .DecodePluginConfig (key , & pluginCfg )
408
+ var decodedPluginCfg PluginConfig
409
+ err := c0 .DecodePluginConfig (key , & decodedPluginCfg )
410
410
Expect (err ).To (HaveOccurred ())
411
411
Expect (errors .As (err , & config.PluginKeyNotFoundError {})).To (BeTrue ())
412
412
})
413
413
414
414
It ("DecodePluginConfig should fail to retrieve data from a non-existent plugin" , func () {
415
- var pluginCfg PluginConfig
416
- err := c1 .DecodePluginConfig ("plugin-y" , & pluginCfg )
415
+ var decodedPluginCfg PluginConfig
416
+ err := c1 .DecodePluginConfig ("plugin-y" , & decodedPluginCfg )
417
417
Expect (err ).To (HaveOccurred ())
418
418
Expect (errors .As (err , & config.PluginKeyNotFoundError {})).To (BeTrue ())
419
419
})
420
420
421
421
DescribeTable ("DecodePluginConfig should retrieve the plugin data correctly" ,
422
422
func (getCfg func () Cfg , expected func () PluginConfig ) {
423
- var pluginCfg PluginConfig
424
- Expect (getCfg ().DecodePluginConfig (key , & pluginCfg )).To (Succeed ())
425
- Expect (pluginCfg ).To (Equal (expected ()))
423
+ var decodedPluginCfg PluginConfig
424
+ Expect (getCfg ().DecodePluginConfig (key , & decodedPluginCfg )).To (Succeed ())
425
+ Expect (decodedPluginCfg ).To (Equal (expected ()))
426
426
},
427
427
Entry ("for an empty plugin config object" , func () Cfg { return c1 }, func () PluginConfig { return PluginConfig {} }),
428
428
Entry ("for a full plugin config object" , func () Cfg { return c2 }, func () PluginConfig { return pluginCfg }),
0 commit comments