diff --git a/zcldec/spec_test.go b/zcldec/spec_test.go new file mode 100644 index 0000000..c3abed5 --- /dev/null +++ b/zcldec/spec_test.go @@ -0,0 +1,13 @@ +package zcldec + +// Verify that all of our spec types implement the necessary interfaces +var objectSpecAsSpec Spec = ObjectSpec(nil) +var tupleSpecAsSpec Spec = TupleSpec(nil) +var attrSpecAsSpec Spec = (*AttrSpec)(nil) +var literalSpecAsSpec Spec = (*LiteralSpec)(nil) +var exprSpecAsSpec Spec = (*ExprSpec)(nil) +var blockSpecAsSpec Spec = (*BlockSpec)(nil) +var blockListSpecAsSpec Spec = (*BlockListSpec)(nil) +var blockSetSpecAsSpec Spec = (*BlockSetSpec)(nil) +var blockMapSpecAsSpec Spec = (*BlockMapSpec)(nil) +var blockLabelSpecAsSpec Spec = (*BlockLabelSpec)(nil)