update go mock to allow for both version and env sub-commands

This commit is contained in:
Jason Hutchinson 2017-04-19 00:11:02 -05:00
parent 192d634e08
commit ac3307400d

View file

@ -12,7 +12,14 @@ function setUp() {
} }
function mockGo() { function mockGo() {
echo 'go version go1.5.3 darwin/amd64' case "$1" in
'version')
echo 'go version go1.5.3 darwin/amd64'
;;
'env')
echo "$HOME/go"
;;
esac
} }
function testGo() { function testGo() {