Skip to content

Commit

Permalink
adding unit tests for testing no rule ids present
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Kanchwala committed Dec 19, 2020
1 parent d3f6e70 commit c329a3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/iac-providers/terraform/v12/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ func TestGetSkipRules(t *testing.T) {
input string
expected []string
}{
{
name: "no rules",
input: "no rules here",
// expected would be an empty slice of strings
},
{
name: "single rule id",
input: "#ts:skip=AWS.S3Bucket.DS.High.1041",
Expand Down

0 comments on commit c329a3f

Please sign in to comment.