| Conditions | 4 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package strip |
||
| 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 | } |
||
| 18 |