aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/decl_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/decl_test.go b/sys/decl_test.go
index 18385c321..aa81f33e6 100644
--- a/sys/decl_test.go
+++ b/sys/decl_test.go
@@ -7,6 +7,16 @@ import (
"testing"
)
+func TestResourceCtors(t *testing.T) {
+ for _, c := range Calls {
+ for _, res := range c.InputResources() {
+ if len(resourceCtors(res.Desc.Kind, true)) == 0 {
+ t.Errorf("call %v requires input resource %v, but there are no calls that can create this resource", c.Name, res.Desc.Name)
+ }
+ }
+ }
+}
+
func TestTransitivelyEnabledCalls(t *testing.T) {
t.Parallel()
calls := make(map[*Call]bool)