]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
filesystem: add unit tests for loadMountInfo()
authorEric Biggers <ebiggers@google.com>
Tue, 29 Oct 2019 07:33:54 +0000 (00:33 -0700)
committerEric Biggers <ebiggers@google.com>
Wed, 30 Oct 2019 16:25:38 +0000 (09:25 -0700)
commite71c5e4f70632b99a08d127b35e80a9e291e1938
treec41774c7422e3cb5e55a753c79d4c45fe3692501
parentdbafdbaa9b0767f71affaf15fb8c626f64e27122
filesystem: add unit tests for loadMountInfo()

Add a version of loadMountInfo() that takes an io.Reader parameter to
allow injecting a custom mountinfo file, then add some unit tests.
filesystem/mountpoint.go
filesystem/mountpoint_test.go