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

     1  package azure
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/aquasecurity/defsec/pkg/types"
     7  	"github.com/stretchr/testify/assert"
     8  )
     9  
    10  func Test_ValueAsInt(t *testing.T) {
    11  	val := NewValue(int64(10), types.NewTestMetadata())
    12  	assert.Equal(t, 10, val.AsInt())
    13  }