update golang tests

pull/1657/head
cornfeedhobo 2020-09-10 09:42:24 -05:00
parent 262a58fabc
commit dfa9e9bf11
No known key found for this signature in database
GPG Key ID: 724357093F994B26
1 changed files with 7 additions and 7 deletions

View File

@ -5,14 +5,14 @@ load ../../lib/helpers
load ../../lib/composure
@test 'ensure _go_pathmunge_wrap is defined' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
load ../../plugins/available/go.plugin
run type -t _go_pathmunge_wrap
assert_line 'function'
}
@test 'plugins go: single entry in GOPATH' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
export GOPATH="/foo"
export GOROOT="/baz"
load ../../plugins/available/go.plugin
@ -20,7 +20,7 @@ load ../../lib/composure
}
@test 'plugins go: single entry in GOPATH, with space' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
export GOPATH="/foo bar"
export GOROOT="/baz"
load ../../plugins/available/go.plugin
@ -28,7 +28,7 @@ load ../../lib/composure
}
@test 'plugins go: single entry in GOPATH, with escaped space' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
export GOPATH="/foo\ bar"
export GOROOT="/baz"
load ../../plugins/available/go.plugin
@ -36,7 +36,7 @@ load ../../lib/composure
}
@test 'plugins go: multiple entries in GOPATH' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
export GOPATH="/foo:/bar"
export GOROOT="/baz"
load ../../plugins/available/go.plugin
@ -44,7 +44,7 @@ load ../../lib/composure
}
@test 'plugins go: multiple entries in GOPATH, with space' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
export GOPATH="/foo:/foo bar"
export GOROOT="/baz"
load ../../plugins/available/go.plugin
@ -52,7 +52,7 @@ load ../../lib/composure
}
@test 'plugins go: multiple entries in GOPATH, with escaped space' {
{ [[ $CI ]] || _command_exists go; } || skip 'golang not found'
{ _command_exists go && go version &>/dev/null ; } || skip 'golang not found'
export GOPATH="/foo:/foo\ bar"
export GOROOT="/baz"
load ../../plugins/available/go.plugin