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

     1  package azure
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/khulnasoft-lab/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  }