forked from fedora-modularity/libmodulemd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Modulemd.ModuleIndex.dump_to_custom()
In order to support YAML streams from arbitrary sources (such as those being written to a compressed file through an intermediate library), we need to support writing through a custom function. This patch enables consumers of libmodulemd to have indirect access to libyaml's yaml_parser_set_output() to accomplish this. Adds a basic test to read through a long string and verify that it produced an index with the read module. Related: fedora-modularity#208 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
- Loading branch information
1 parent
0c4fcce
commit 147393d
Showing
3 changed files
with
196 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
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