tide/tests/_tide_item_go.test.fish
Branch Vincent 740904fe6a
isolate tests and add Makefile (#179)
* isolate tests

* add Makefile

* Makefile edits

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2021-07-25 10:46:58 -07:00

19 lines
251 B
Fish

# RUN: %fish %s
function _go
_tide_decolor (_tide_item_go)
end
set -l goDir (mktemp -d)
cd $goDir
mock go version "echo go version go1.16.5 linux/amd64"
set -lx tide_go_icon
_go # CHECK:
touch go.mod
_go # CHECK:  1.16.5
rm -r $goDir