From 8796df8218aa306f1431c17233fbcc3e0811cc4e Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 29 Feb 2020 22:24:20 +0800 Subject: conf: add unit tests (#5954) * conf: add tests for utils.go * conf: add tests for static.go * mock os/exec * Run tests on Windows * appveyor: fix gcc not found * computed: add unit tests * log: add unit tests * log: fix tests on Windows * conf: add some tests * Finish adding tests * Cover more cases * Add tests for testutil * Add more tests --- internal/osutil/osutil_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/osutil/osutil_test.go') diff --git a/internal/osutil/osutil_test.go b/internal/osutil/osutil_test.go index 4c9a2ad7..8c45f5c0 100644 --- a/internal/osutil/osutil_test.go +++ b/internal/osutil/osutil_test.go @@ -55,3 +55,8 @@ func TestIsExist(t *testing.T) { }) } } + +func TestCurrentUsername(t *testing.T) { + // Make sure it does not blow up + CurrentUsername() +} -- cgit v1.2.3