Files
fil/fixtures/code/code_shebang_detection.json

42 lines
798 B
JSON
Raw Normal View History

2026-06-01 23:40:55 +02:00
{
"id": "code_shebang_detection",
"category": "code",
"description": "Test language detection from shebang line via bytes input",
"tags": [
"code",
"shebang",
"tree-sitter"
],
"call": "extract_file_sync",
"input": {
"path": "code/script.sh",
"mime_type": "text/x-source-code"
},
"assertions": [
{
"type": "equals",
"field": "mime_type",
"value": "text/x-source-code"
},
{
"type": "min_length",
"field": "content",
"value": 10
},
{
"type": "contains_all",
"field": "content",
"values": [
"build",
"clean"
]
}
],
"skip": {
"languages": [
"wasm"
],
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
}
}