google / google/jimfs

Support assertion that all resources are closed

Open
#53 2 comments 0 reactions 0 assignees View on GitHub
P4 type=enhancement
Dominant language
Java
Stars
2.6k
Forks
296
Avg merge
9m
Merged PRs (30d)
7

Description

I really like jimfs for testing. However there are a few things that I cannot easily test at the moment, especially checking if all resources have been closed. It seems FileSystemState already contains a list of open resources, but I can't find a way to access this list.

Having a method like getOpenResources() or assertNoOpenResources() would be really nice and easy to implement.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.