test_utils library

Classes

FormatTester<T>
An abstract class that allows to test a TranslationFormat in a standarized test with diverse messages. [...]
GenerateTranslationTester<T>
An abstract class that allows to test a TranslationFormat in a standarized test with diverse messages. [...]
MockFile
MockTemplate
Mock Template used for testing [...]
MonolingualFormatTester
An abstract class that allows to test a MonoLingualFormat in a standarized test with diverse messages. [...]
MultilingualGenerateTemplateTester
MultilingualParsingTester
An abstract class that allows to test a MultiLingualFormat in a standarized test with diverse messages. [...]
ParsingFormatTester<T>
An abstract class that allows to test a TranslationFormat in a standarized test with diverse messages. [...]

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 [...]
testFormat(FormatTester tester) → void