github.com/jenkins-x/jx/v2@v2.1.155/pkg/tekton/metapipeline/pullref_test.go (about)

     1  // +build unit
     2  
     3  package metapipeline
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/magiconair/properties/assert"
     9  )
    10  
    11  func Test_pull_ref_to_string(t *testing.T) {
    12  	pullRef := NewPullRef("https://github.com/jenkins-x/jx", "master", "1234567")
    13  	toString := pullRef.String()
    14  
    15  	assert.Equal(t, "master:1234567", toString)
    16  }