summaryrefslogtreecommitdiff
path: root/internal/container/plugins_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/container/plugins_test.go')
-rw-r--r--internal/container/plugins_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/container/plugins_test.go b/internal/container/plugins_test.go
new file mode 100644
index 00000000..b857f09a
--- /dev/null
+++ b/internal/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)
+ }
+ }
+}