Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored and simar7 committed Jul 20, 2023
1 parent cb7abb6 commit 617453a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/scanners/azure/value_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package azure

import (
"testing"

"github.com/aquasecurity/defsec/pkg/types"
"github.com/stretchr/testify/assert"
)

func Test_ValueAsInt(t *testing.T) {
val := NewValue(int64(10), types.NewTestMetadata())
assert.Equal(t, 10, val.AsInt())
}

0 comments on commit 617453a

Please sign in to comment.