github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/azure/arm/parser/armjson/parse_null_test.go (about)

     1  package armjson
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/aquasecurity/defsec/pkg/types"
     7  
     8  	"github.com/stretchr/testify/require"
     9  )
    10  
    11  func Test_Null(t *testing.T) {
    12  	example := []byte(`null`)
    13  	var output string
    14  	ref := &output
    15  	metadata := types.NewTestMetadata()
    16  	err := Unmarshal(example, &ref, &metadata)
    17  	require.NoError(t, err)
    18  }