format_test library

Classes

MockTemplate
Mock Template used for testing [...]

Functions

expectFormatParsing(String content, MonoLingualFormat format, {List<MainMessage> messages = const []}) → void
Compares a file content with the messages that are expected after parsing the file with the indicated format
expectFormatTemplateGeneration(String content, TranslationFormat<StringFileData> format, {List<MainMessage> messages = const []}) → void
Compares MainMessages with the template file that would be generated using the indicated format.
expectMessage(Message message, Message expected) → void
Compares two message with their icu string version.
expectMultiLingualFormatParsing(String content, MultiLingualFormat format, {Map<String, List<MainMessage>> messages, String defaultLocale = 'en'}) → void
Compares a file content with the messages that are expected after parsing the file with the indicated format [...]