-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make EXE_INFO testable and add a basic test for it
This extracts the code used to lazily initialize `EXE_INFO` into a separate `exe_info` helper, which is an implementation detail, but can be called any number of times without caching from the tests. It also adds one test. The tests of downstream functions (those that use `EXE_INFO`) remain more important. But this will allow the test to be expanded, or another added, to test more expectations that `EXE_INFO` is supposed to satisfy.
- Loading branch information
1 parent
ccd0401
commit 1ee98bf
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters