Skip to content

Instantly share code, notes, and snippets.

@AseemWangoo
Created December 20, 2022 06:21
Show Gist options
  • Save AseemWangoo/1622eebc41d179167c829da595d92501 to your computer and use it in GitHub Desktop.
Save AseemWangoo/1622eebc41d179167c829da595d92501 to your computer and use it in GitHub Desktop.
test ffigen
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