Testing Files Generator

Presets

Text encoding

Does my reader know which encoding a file is in, or is it guessing?

The text-encoding preset builds a whole set of real test files for this question in one command, and a manifest.json beside them saying how your system should react to each file. Everything below is read from the program, at the defaults of this version.

What does it usually find?

What is in the set?

At its defaults, as tfg preset show text-encoding reports it:

Files20
Targets in its recipe20
Total size81 920 B
Formatscsv, log, md, txt, xml

And what the manifest of that set expects from your system:

ExpectedMeaningFiles
acceptYour system should take the file.10
unspecifiedIt depends on the rules of your system. You decide, then check that what happens is what you meant.10

What can you change?

SettingTakesDefaultWhat it does
--sample a size such as 2mb 4kb How big each file of the set is. UTF-16 stores two bytes for every character, so an odd number is refused.

How do you run it?

See what the set would cost, build it, or take its recipe to edit:

tfg preset show text-encoding
tfg generate --preset text-encoding --out ./text-encoding
tfg preset eject text-encoding > text-encoding.yaml

Or build on it in a recipe of your own, next to your tests:

version: 1
extends: preset:text-encoding