throwFormatException('${errorPrefix}The following e-mail address appears to be an invalid e-mail address: $email');
}
if(fetch.isEmpty)
throwFormatException('${errorPrefix}No "fetch" directives specified. Two lines are expected: "git clone https://github.com/USERNAME/REPOSITORY.git tests" and "git -C tests checkout HASH".');
if(fetch.length<2)
throwFormatException('${errorPrefix}Only one "fetch" directive specified. Two lines are expected: "git clone https://github.com/USERNAME/REPOSITORY.git tests" and "git -C tests checkout HASH".');
if(!fetch[0].contains(_fetch1))
throwFormatException('${errorPrefix}First "fetch" directive does not match expected pattern (expected "git clone https://github.com/USERNAME/REPOSITORY.git tests").');
if(!fetch[1].contains(_fetch2))
throwFormatException('${errorPrefix}Second "fetch" directive does not match expected pattern (expected "git -C tests checkout HASH").');
if(update.isEmpty)
throwFormatException('${errorPrefix}No "update" directives specified. At least one directory must be specified. (It can be "." to just upgrade the root of the repository.)');
if(!hasTests)
throwFormatException('${errorPrefix}No "test" directives specified. At least one command must be specified to run tests.');
throwFormatException('${errorPrefix}The following e-mail address appears to be an invalid e-mail address: $email');
}
if(fetch.isEmpty)
throwFormatException('${errorPrefix}No "fetch" directives specified. Two lines are expected: "git clone https://github.com/USERNAME/REPOSITORY.git tests" and "git -C tests checkout HASH".');
if(fetch.length<2)
throwFormatException('${errorPrefix}Only one "fetch" directive specified. Two lines are expected: "git clone https://github.com/USERNAME/REPOSITORY.git tests" and "git -C tests checkout HASH".');
if(!fetch[0].contains(_fetch1))
throwFormatException('${errorPrefix}First "fetch" directive does not match expected pattern (expected "git clone https://github.com/USERNAME/REPOSITORY.git tests").');
if(!fetch[1].contains(_fetch2))
throwFormatException('${errorPrefix}Second "fetch" directive does not match expected pattern (expected "git -C tests checkout HASH").');
if(update.isEmpty)
throwFormatException('${errorPrefix}No "update" directives specified. At least one directory must be specified. (It can be "." to just upgrade the root of the repository.)');
if(!hasTests)
throwFormatException('${errorPrefix}No "test" directives specified. At least one command must be specified to run tests.');