Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Sep 6, 2022
1 parent 451869b commit 6cd7bd0
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions internal/uri/uri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,32 +180,25 @@ func TestMustParseURI(t *testing.T) {
}

func TestIsWSLURI(t *testing.T) {
type args struct {
uri string
}
tests := []struct {
name string
args args
uri string
want bool
}{
{
name: "UNC WSL Path should return true",
args: args{
uri: `file://wsl%24/Ubuntu/home/james/some/path`,
},
uri: `file://wsl%24/Ubuntu/home/james/some/path`,
want: true,
},
{
name: "Regular file path should return false",
args: args{
uri: `file://C:/foo/james/foo`,
},
uri: `file://C:/foo/james/foo`,
want: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := IsWSLURI(tt.args.uri); got != tt.want {
if got := IsWSLURI(tt.uri); got != tt.want {
t.Errorf("IsWSLURI() = %v, want %v", got, tt.want)
}
})
Expand Down

0 comments on commit 6cd7bd0

Please sign in to comment.