github.com/TIBCOSoftware/flogo-lib@v0.5.9/app/resource/manager_test.go (about)

     1  package resource
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestGetTypeFromID(t *testing.T) {
    10  
    11  	resType, err := GetTypeFromID("flow:myflow")
    12  	assert.Nil(t, err)
    13  	assert.Equal(t, "flow", resType)
    14  }