Testing Files Generator
Română

26 formate de fișiere, fiecare generat la o dimensiune exactă

Fiecare este un fișier real al acelui format. Se deschide în programul căruia îi aparține și are exact numărul de octeți pe care l-ai cerut. Niciunul nu e umplutură de zerouri cu o extensie lipită.

Format Nume Extensie Cel mai mic fișier Fidelitate Verificat cu
avif AV1 Image File Format .avif 311 full pillow
bmp Windows Bitmap .bmp 58 full pillow
csv Comma-Separated Values .csv 115 full python-csv
docx Word (Office Open XML) .docx 1220 full libreoffice
gif Graphics Interchange Format .gif 114 full pillow
html HyperText Markup Language .html 118 full python-html
ico Windows Icon .ico 70 full pillow
jpg JPEG .jpg 602 full pillow
json JavaScript Object Notation .json 219 full node-json
jxl JPEG XL .jxl 147 full pillow-jxl
log Server and application log .log 155 full nu se aplică
md Markdown .md 0 full nu se aplică
pdf Portable Document Format .pdf 3415 full pdftotext
png Portable Network Graphics .png 74 full pillow
pptx PowerPoint (Office Open XML) .pptx 4809 full libreoffice
svg Scalable Vector Graphics .svg 194 full inkscape
targz tar + gzip .tar.gz 9790 full 7z
tiff Tagged Image File Format .tiff 183 full pillow
toml TOML .toml 212 full python-toml
txt Plain text .txt 0 full nu se aplică
wav Waveform Audio .wav 98 full ffprobe
webp WebP .webp 148 full pillow
xlsx Excel (Office Open XML) .xlsx 1726 full libreoffice
xml Extensible Markup Language .xml 264 full python-xml
yaml YAML .yaml 241 full python-yaml
zip ZIP .zip 8382 full 7z

Ce înseamnă coloanele

Fiecare format se și repetă la octet: aceeași rețetă și același seed produc fișiere identice pe orice mașină, ceea ce face sigur să comiți o rețetă în locul fixture-urilor înseși.

Setările pe care le acceptă fiecare format

Majoritatea formatelor au setări proprii - dimensiunile imaginii, calitatea JPEG, numărul de pagini PDF, rândurile și coloanele dintr-o foaie de calcul, câte intrări intră într-o arhivă. Setează-le cu --set key=value în linia de comandă sau sub properties: într-o rețetă.

tfg generate --format jpg --size 500kb --set width=1920 --set height=1080 --set quality=85
Format Setare Acceptă
avif width 1 - 16384 pixeli
height 1 - 16384 pixeli
quality 1 - 100
bmp width 1 - 20000 pixeli
height 1 - 20000 pixeli
csv delimiter comma, pipe, semicolon, tab
line_ending crlf, lf
header adevărat sau fals
quote_style all, minimal, none
columns 2 - 32768 coloane
docx paragraphs 1 - 50000 paragrafe
gif width 1 - 20000 pixeli
height 1 - 20000 pixeli
frames 1 - 60
html structure document, fragment
ico width 1 - 256 pixeli
height 1 - 256 pixeli
embed bmp, png
jpg width 1 - 20000 pixeli
height 1 - 20000 pixeli
quality 1 - 100
json formatting indented, minified, record-per-line
jxl width 1 - 16384 pixeli
height 1 - 16384 pixeli
quality 1 - 100
log entry_format apache-combined, apache-common, json-lines, nginx, plain, syslog
timestamps advancing, fixed
rate 1 - 1000000 intrări pe secundă
methods get, mixed, read
status_mix client-errors, realistic, server-errors, success
level_mix debug, errors, quiet, realistic
ip_version mixed, v4, v6
line_ending crlf, lf
md encoding utf-16be, utf-16le, utf-8
bom adevărat sau fals
pdf pages 1 - 5000
page_size a3, a4, a5, legal, letter, mixed
orientation landscape, mixed, portrait
rotate 0, 90, 180, 270
pdf_version 1.4, 1.7
title orice text
author orice text
subject orice text
keywords orice text
creator orice text
producer orice text
created o dată precum 2024-02-29 sau 2024-02-29T13:45:00+02:00, sau none
modified o dată precum 2024-02-29 sau 2024-02-29T13:45:00+02:00, sau none
png width 1 - 20000 pixeli
height 1 - 20000 pixeli
pptx slides 1 - 500 diapozitive
svg width 1 - 20000 pixeli
height 1 - 20000 pixeli
targz entries 0 - 10000
entry_format id-ul unui format, așa cum îl listează tfg formats
entry_size o dimensiune precum 2mb
compression best, default, fast, none
depth 0 - 50
directory_entries adevărat sau fals
entry_mode 000, 400, 444, 600, 644, 664, 666, 700, 755, 777
entry_owner root, unset, user
tiff width 1 - 20000 pixeli
height 1 - 20000 pixeli
txt encoding utf-16be, utf-16le, utf-8
bom adevărat sau fals
wav sample_rate 8000 - 192000 herți
bit_depth 8, 16, 24, 32
channels 1 - 8
content noise, silence, sweep, tone
webp width 1 - 16383 pixeli
height 1 - 16383 pixeli
xlsx rows 1 - 200000 rânduri
columns 1 - 32768 coloane
xml encoding utf-16be, utf-16le, utf-8
bom adevărat sau fals
zip entries 0 - 10000
entry_format id-ul unui format, așa cum îl listează tfg formats
entry_size o dimensiune precum 2mb
compression best, default, fast, none
depth 0 - 50
directory_entries adevărat sau fals
password parola, în text simplu
encryption aes-128, aes-192, aes-256, none, zipcrypto

O valoare în afara a ce acceptă o setare este refuzată cu un mesaj care numește setarea, intervalul permis și ce să folosești în loc. O setare necunoscută este și ea o eroare, niciodată o valoare implicită tăcută - o greșeală de scriere acceptată pe tăcute dă un fișier cu setările greșite și o oră de întrebări de ce trece testul când n-ar trebui.

Rulează tfg formats <id> ca să vezi exact ce acceptă un format în versiunea pe care o ai.

Arhivele conțin fișiere reale

targz și zip pot fi umplute cu intrări, nu lăsate ca o carcasă goală. O arhivă generată conține cu adevărat documentele pe care spune că le conține, așa că tot ce o dezarhivează în timpul unui test găsește înăuntru fișiere reale.

targets:
  - id: bundle
    format: zip
    contains:
      - format: txt
        count: 200
        size: 4kb