In you split in several cases, there is no need to use this function. You can mockup `FileReader`, or `onerror` depending on the scenario.