summaryrefslogtreecommitdiff
path: root/container/plugins_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-07-15 15:43:01 +0200
committerValery Piashchynski <[email protected]>2022-07-15 15:43:01 +0200
commit3dfd34d5d4b9f47dae203dd27af9fdba2de67960 (patch)
tree88539938a4a61faf0221379ac34754042adabadb /container/plugins_test.go
parent5d598819f74a860b4f265fb6fde033da008d706e (diff)
- move container from the internal folder
- channel with the proper size Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'container/plugins_test.go')
-rw-r--r--container/plugins_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/container/plugins_test.go b/container/plugins_test.go
new file mode 100644
index 00000000..b857f09a
--- /dev/null
+++ b/container/plugins_test.go
@@ -0,0 +1,18 @@
+package container
+
+import (
+ "reflect"
+ "testing"
+)
+
+func TestPlugins(t *testing.T) {
+ for _, p := range Plugins() {
+ if p == nil {
+ t.Error("plugin cannot be nil")
+ }
+
+ if pk := reflect.TypeOf(p).Kind(); pk != reflect.Ptr && pk != reflect.Struct {
+ t.Errorf("plugin %v must be a structure or pointer to the structure", p)
+ }
+ }
+}