update go mock to allow for both version and env sub-commands
parent
192d634e08
commit
ac3307400d
|
@ -12,7 +12,14 @@ function setUp() {
|
|||
}
|
||||
|
||||
function mockGo() {
|
||||
case "$1" in
|
||||
'version')
|
||||
echo 'go version go1.5.3 darwin/amd64'
|
||||
;;
|
||||
'env')
|
||||
echo "$HOME/go"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
function testGo() {
|
||||
|
|
Loading…
Reference in New Issue