[Minor] Refactor out sector utilities
PROGRAMMING TASK
Description of Task
There are a few similar testing functions that all create random sectors, including two named randSector
which are identical and one named randomSector
. These should be factored out into a single function, placed somewhere in the modules
package.
Reason or Need for Change
More DRY.
Design / Proposal
Make a new file called modules/host/sectors.go
and place this function there, along with the other testing utilities currently in modules/host/mdm/sectors_test.go
.