]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
tests: use subtests
authorSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 08:36:02 +0000 (10:36 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 08:36:02 +0000 (10:36 +0200)
commit992eaae7fec45c2d58fff89d1bc0ae920a899296
treeac2d8f3e282650faa9e495b29d742b20e0000b97
parent30df06d9dc760f7adf8ce51f2443dedc773f1350
tests: use subtests

This removes the need to print the name of the test in each t.Errorf()
call which reduces unnecessary code. It also permits skipping tests
which will be used in the future.
18 files changed:
cmd/safcm-remote/ainsl/ainsl_test.go
cmd/safcm-remote/sync/commands_test.go
cmd/safcm-remote/sync/files_test.go
cmd/safcm-remote/sync/packages_debian_test.go
cmd/safcm-remote/sync/services_systemd_test.go
cmd/safcm-remote/sync/sync_test.go
cmd/safcm-remote/sync/triggers_test.go
cmd/safcm/config/files_test.go
cmd/safcm/config/groups_test.go
cmd/safcm/config/hosts_test.go
cmd/safcm/config/permissions_test.go
cmd/safcm/config/templates_test.go
cmd/safcm/config/triggers_test.go
cmd/safcm/sync_changes_test.go
cmd/safcm/sync_info_test.go
cmd/safcm/sync_sync_test.go
cmd/safcm/sync_test.go
cmd/safcm/term_test.go