github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/scanners/terraform/parser/load_blocks_test.go (about)

     1  package parser
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestParsingDoubleComment(t *testing.T) {
    10  	ignores := parseIgnoresFromLine("## terrasec:ignore:abc")
    11  	assert.Equal(t, 1, len(ignores))
    12  	assert.Truef(t, ignores[0].Block, "Expected ignore to be a block")
    13  }