Testing Files Generator
ไทย

26 รูปแบบไฟล์ แต่ละรูปแบบสร้างที่ขนาดแม่นยำ

ทุกรูปแบบเป็นไฟล์จริงของรูปแบบนั้น เปิดได้ในซอฟต์แวร์ของมัน และมีจำนวนไบต์ตรงตามที่คุณขอพอดี ไม่มีรูปแบบใดเป็นศูนย์เติมเต็มที่แปะนามสกุลเข้าไป

รูปแบบ ชื่อ นามสกุล ไฟล์เล็กที่สุด ความสมบูรณ์ ตรวจสอบด้วย
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 ไม่เกี่ยวข้อง
md Markdown .md 0 full ไม่เกี่ยวข้อง
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 ไม่เกี่ยวข้อง
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

ความหมายของคอลัมน์

ทุกรูปแบบยังทำซ้ำได้ถึงระดับไบต์ด้วย: สูตรและซีดเดียวกันสร้างไฟล์เหมือนกันทุกประการบนเครื่องใดก็ตาม และนี่คือสิ่งที่ทำให้การคอมมิตสูตรแทนตัวฟิกซ์เจอร์ปลอดภัย

การตั้งค่าที่แต่ละรูปแบบรับ

ส่วนใหญ่ของรูปแบบมีการตั้งค่าของตัวเอง - ขนาดภาพ คุณภาพ JPEG จำนวนหน้า PDF จำนวนแถวและคอลัมน์ในสเปรดชีต จำนวนรายการในไฟล์บีบอัด ตั้งค่าด้วย --set key=value ในบรรทัดคำสั่ง หรือใต้ properties: ในสูตร

tfg generate --format jpg --size 500kb --set width=1920 --set height=1080 --set quality=85
รูปแบบ การตั้งค่า ค่าที่รับ
avif width 1 - 16384 พิกเซล
height 1 - 16384 พิกเซล
quality 1 - 100
bmp width 1 - 20000 พิกเซล
height 1 - 20000 พิกเซล
csv delimiter comma, pipe, semicolon, tab
line_ending crlf, lf
header จริงหรือเท็จ
quote_style all, minimal, none
columns 2 - 32768 คอลัมน์
docx paragraphs 1 - 50000 ย่อหน้า
gif width 1 - 20000 พิกเซล
height 1 - 20000 พิกเซล
frames 1 - 60
html structure document, fragment
ico width 1 - 256 พิกเซล
height 1 - 256 พิกเซล
embed bmp, png
jpg width 1 - 20000 พิกเซล
height 1 - 20000 พิกเซล
quality 1 - 100
json formatting indented, minified, record-per-line
jxl width 1 - 16384 พิกเซล
height 1 - 16384 พิกเซล
quality 1 - 100
log entry_format apache-combined, apache-common, json-lines, nginx, plain, syslog
timestamps advancing, fixed
rate 1 - 1000000 รายการต่อวินาที
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 จริงหรือเท็จ
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 ข้อความใดก็ได้
author ข้อความใดก็ได้
subject ข้อความใดก็ได้
keywords ข้อความใดก็ได้
creator ข้อความใดก็ได้
producer ข้อความใดก็ได้
created วันที่ เช่น 2024-02-29 หรือ 2024-02-29T13:45:00+02:00 หรือ none
modified วันที่ เช่น 2024-02-29 หรือ 2024-02-29T13:45:00+02:00 หรือ none
png width 1 - 20000 พิกเซล
height 1 - 20000 พิกเซล
pptx slides 1 - 500 สไลด์
svg width 1 - 20000 พิกเซล
height 1 - 20000 พิกเซล
targz entries 0 - 10000
entry_format รหัสของรูปแบบ ตามที่ tfg formats แสดง
entry_size ขนาด เช่น 2mb
compression best, default, fast, none
depth 0 - 50
directory_entries จริงหรือเท็จ
entry_mode 000, 400, 444, 600, 644, 664, 666, 700, 755, 777
entry_owner root, unset, user
tiff width 1 - 20000 พิกเซล
height 1 - 20000 พิกเซล
txt encoding utf-16be, utf-16le, utf-8
bom จริงหรือเท็จ
wav sample_rate 8000 - 192000 เฮิรตซ์
bit_depth 8, 16, 24, 32
channels 1 - 8
content noise, silence, sweep, tone
webp width 1 - 16383 พิกเซล
height 1 - 16383 พิกเซล
xlsx rows 1 - 200000 แถว
columns 1 - 32768 คอลัมน์
xml encoding utf-16be, utf-16le, utf-8
bom จริงหรือเท็จ
zip entries 0 - 10000
entry_format รหัสของรูปแบบ ตามที่ tfg formats แสดง
entry_size ขนาด เช่น 2mb
compression best, default, fast, none
depth 0 - 50
directory_entries จริงหรือเท็จ
password รหัสผ่านในรูปข้อความธรรมดา
encryption aes-128, aes-192, aes-256, none, zipcrypto

ค่านอกขอบเขตที่การตั้งค่ารับถูกปฏิเสธด้วยข้อความที่ระบุการตั้งค่า ช่วงที่อนุญาต และสิ่งที่ควรใช้แทน การตั้งค่าที่ไม่รู้จักก็เป็นข้อผิดพลาดเช่นกัน ไม่ใช่ค่าเริ่มต้นเงียบๆ - ตัวพิมพ์ผิดที่ถูกยอมรับเงียบๆ ให้ไฟล์ที่ตั้งค่าผิดและหนึ่งชั่วโมงของการสงสัยว่าทำไมการทดสอบจึงผ่านทั้งที่ไม่ควร

รัน tfg formats <id> เพื่อดูว่ารูปแบบหนึ่งรับอะไรบ้างในบิลด์ที่คุณมี

ไฟล์บีบอัดมีไฟล์จริงอยู่ข้างใน

targz และ zip ใส่รายการลงไปได้ แทนที่จะปล่อยเป็นเปลือกว่าง ไฟล์บีบอัดที่สร้างขึ้นมีเอกสารที่อ้างว่ามีจริงๆ ดังนั้นสิ่งใดที่แตกไฟล์นั้นระหว่างการทดสอบจะพบไฟล์จริงอยู่ข้างใน

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