Created
December 20, 2022 06:21
-
-
Save AseemWangoo/1622eebc41d179167c829da595d92501 to your computer and use it in GitHub Desktop.
test ffigen
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
test('url_cache', () { | |
final pubspecFile = File('url_cache_config.yaml'); | |
final pubspecYaml = loadYaml(pubspecFile.readAsStringSync()) as YamlMap; | |
final config = Config.fromYaml(pubspecYaml); | |
final output = parse(config).generate(); | |
expect(output, contains('class URLCacheLibrary{')); | |
expect(output, contains('static NSURLCache?getSharedURLCache(')); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment