From 4df9fd137246daa7611b8d279ae6576ad7631386 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 17 Jul 2017 16:54:24 -0700 Subject: [PATCH] zcldec: test that all Spec types actually implement the interface --- zcldec/spec_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 zcldec/spec_test.go 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)