Package test contains utilities used in the policy engine's test suite.
MakeTempFS creates a temporary directory structure for test purposes rooted at root. If root is empty, the dir is created in the default system temp location. If the creation fails, cleanup is nil and the caller does not have to invoke it. If creation succeeds, the caller should invoke cleanup when they are done.
Subtest executes a sub-test f under test t.
WithTempFS creates a temporary directory structure and invokes f with the root directory path.