]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
tests: add and use testutil package to reduce duplication
authorSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 09:20:02 +0000 (11:20 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 09:20:02 +0000 (11:20 +0200)
commit3473766d8afb07cb0685694656947883cbbd1138
tree331dd7459804af7d2e1a0c5b8e644ea545e2d020
parent641203fda8f7da72c74562c9dc910ca108116f11
tests: add and use testutil package to reduce duplication

This is not as explicit as the previous code but still good enough. And
it gets rid of quite some boilerplate.
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/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
testutil/testutil.go [new file with mode: 0644]