(t *testing.T)
| 2009 | } |
| 2010 | |
| 2011 | func TestMobVersionWorksOutsideOfGitRepository(t *testing.T) { |
| 2012 | output := captureOutput(t) |
| 2013 | runMob(t, t.TempDir(), "version") |
| 2014 | |
| 2015 | assertOutputNotContains(t, output, "ERROR") |
| 2016 | assertOutputContains(t, output, "v"+versionNumber) |
| 2017 | } |
| 2018 | |
| 2019 | func runMob(t *testing.T, workingDir string, args ...string) { |
| 2020 | setWorkingDir(workingDir) |
nothing calls this directly
no test coverage detected