github.com/argoproj/argo-cd@v1.8.7/util/helm/version_test.go (about)

     1  package helm
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestIsVersion(t *testing.T) {
    10  	assert.False(t, IsVersion("*"))
    11  	assert.False(t, IsVersion("1.*"))
    12  	assert.False(t, IsVersion("1.0.*"))
    13  	assert.True(t, IsVersion("1.0.0"))
    14  }