more cases

This commit is contained in:
Elbaz
2023-08-28 16:21:40 +03:00
parent 02c0c44bdd
commit cf04e25f79
7 changed files with 27 additions and 6 deletions

View File

@@ -132,10 +132,6 @@ func TestTest(t *testing.T) {
expected: "1 passed, 0 failed.",
code: 0,
},
"broken_no_valid_hcl": {
expected: "Unsupported block type",
code: 1,
},
}
for name, tc := range tcs {
t.Run(name, func(t *testing.T) {
@@ -199,6 +195,14 @@ func TestTest_Broken_HCL_Files(t *testing.T) {
expected: "Blocks of type \"data\" are not expected here.",
code: 1,
},
"broken_wrong_block_output": {
expected: "Blocks of type \"output\" are not expected here.",
code: 1,
},
"broken_wrong_block_check": {
expected: "Blocks of type \"data\" are not expected here.",
code: 1,
},
}
for name, tc := range tcs {
t.Run(name, func(t *testing.T) {