There're two functions in this file which do not have unit tests unlike other similar files in the same package, it'd be good to add some unit tests like there are for LocalPV-zfs currently.
Pre-requisites:
Basic working knowledge of Golang, Go Tour is a great place to start
Basic idea of unit-testing, from some blogs and tutorials such as this one
An idea of how tests are written in similar files for other storage engines and how they use the k8s' fake-client to sort of 'mock' the K8s-APIserver. There are really cool blogs about writing unit tests for programs consuming k8s API via client-go, do check them out.
Guidelines:
Try to achieve 100% path coverage in the two functions.
There're two functions in this file which do not have unit tests unlike other similar files in the same package, it'd be good to add some unit tests like there are for LocalPV-zfs currently.
Pre-requisites:
Guidelines: