-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MakeTestDeb() function to testutil/pkgdata. This function is just like MakeDeb() except that it doesn't return an error. Instead, it panics on errors. This is useful in tests where package data is created in top-level test case structures where we don't need to handle the error, e.g.: var testCases = []TestCase{{ pkg: MakeTestDeb([]TarEntry{ ... }), }, { ... }}
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 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