chore: refactor plugin structure (#18335)
This commit is contained in:
parent
9127e1a913
commit
07fa1b64f8
127 changed files with 861 additions and 938 deletions
20
plugin/config_test.go
Normal file
20
plugin/config_test.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package plugin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestConfig(t *testing.T) {
|
||||
var c *Config
|
||||
|
||||
g, err := c.BoolGetter(context.TODO())
|
||||
assert.NoError(t, err)
|
||||
assert.Nil(t, g)
|
||||
|
||||
s, err := c.IntSetter(context.TODO(), "foo")
|
||||
assert.NoError(t, err)
|
||||
assert.Nil(t, s)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue