diff --git a/tax/catalogue_test.go b/tax/catalogue_test.go index 08ae05e5..c75cc5a2 100644 --- a/tax/catalogue_test.go +++ b/tax/catalogue_test.go @@ -20,3 +20,11 @@ func TestAllCatalogueDefs(t *testing.T) { } assert.True(t, match) } + +func TestRegisterCatalogueDef(t *testing.T) { + t.Run("missing source file", func(t *testing.T) { + assert.Panics(t, func() { + tax.RegisterCatalogueDef("missing.json") + }) + }) +}