github.com/uk702/glide@v0.12.3/godep/strip/strip_test.go (about)

     1  package strip
     2  
     3  import "testing"
     4  
     5  func TestRewriteGodepImport(t *testing.T) {
     6  	tests := map[string]string{
     7  		"github.com/Masterminds/glide/action":                           "github.com/Masterminds/glide/action",
     8  		"github.com/tools/godep/Godeps/_workspace/src/github.com/kr/fs": "github.com/kr/fs",
     9  	}
    10  
    11  	for k, v := range tests {
    12  		o := rewriteGodepImport(k)
    13  		if o != v {
    14  			t.Errorf("Incorrect Godep import path rewritten %s: %s", v, o)
    15  		}
    16  	}
    17  }