(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestIsLocal(t *testing.T) { |
| 8 | source := "./tests/test_data/modules" |
| 9 | res := IsLocal(source) |
| 10 | if !res { |
| 11 | t.Errorf("Error, source %s SHOULD BE determined as local", source) |
| 12 | } |
| 13 | |
| 14 | source = "https://github.com/commitdev/my-repo" |
| 15 | res = IsLocal(source) |
| 16 | if res { |
| 17 | t.Errorf("Error, source %s SHOULD NOT BE determined as local", source) |
| 18 | } |
| 19 | } |