summaryrefslogtreecommitdiff
path: root/container/plugins_test.go
blob: b857f09a6309d3bb23ddeb073256ece4a873b333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
		}
	}
}