diff --git a/internal/decoder/validations/unreferenced_origin_test.go b/internal/decoder/validations/unreferenced_origin_test.go index f36b6122..2f0457a9 100644 --- a/internal/decoder/validations/unreferenced_origin_test.go +++ b/internal/decoder/validations/unreferenced_origin_test.go @@ -50,6 +50,28 @@ func TestUnreferencedOrigins(t *testing.T) { }, }, }, + { + name: "unsupported path origins (module input)", + origins: reference.Origins{ + reference.PathOrigin{ + Range: hcl.Range{ + Filename: "test.tf", + Start: hcl.Pos{}, + End: hcl.Pos{}, + }, + TargetAddr: lang.Address{ + lang.RootStep{Name: "var"}, + lang.AttrStep{Name: "foo"}, + }, + TargetPath: lang.Path{ + Path: "./submodule", + LanguageID: "terraform", + }, + Constraints: reference.OriginConstraints{}, + }, + }, + want: lang.DiagnosticsMap{}, + }, { name: "many undeclared variables", origins: reference.Origins{