update-systemd-resolved
update-systemd-resolved copied to clipboard
Refactor Unit Tests
There could be some improvements around the handling of the unit tests. Including:
- [ ] Make
foreign_option_*into an array: This will help with ordering, cleaning up after tests, and make it easier to work with and expand. Will need conversion out into theforeign_option_*variables however for internal processing, but will make the writing of tests easier and less error prone. - [ ]
devcould probably be random alongside theifindexvalue: the script can never be configured for it, and it should never know it, and so to set it in the tests has no real purpose. - [ ] Tests should only output in colour on colour-capable terminals.