mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-28 07:31:00 +03:00
test(form): регресс-кейсы на уникальность имён + позитивный гард неймспейсов
Негативные кейсы (ожидают [ERROR] + exit 1): - form-compile: дубль имени элемента / дубль имени команды; - form-edit: добавление элемента с уже существующим в форме именем; - form-validate: форма с дублирующимся именем элемента. Позитивный гард (компилируется без ошибок): - form-compile: имя реквизита == имя элемента — легально, раздельные неймспейсы; защищает emit_element от случайного слияния пулов имён. Дополнительно прогнано на 38 781 реальной форме выгрузок ERP/ACC/УНФ — ноль ложных срабатываний новой проверки. Co-authored-by: brake71 <8448482+brake71@users.noreply.github.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
brake71
Claude Opus 4.8
parent
41e4714773
commit
01b598ce8f
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "Добавление элемента с уже существующим именем → [ERROR] exit 1",
|
||||
"preRun": [
|
||||
{
|
||||
"script": "meta-compile/scripts/meta-compile",
|
||||
"input": { "type": "DataProcessor", "name": "ТестЕдитДубль" },
|
||||
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
|
||||
},
|
||||
{
|
||||
"script": "form-add/scripts/form-add",
|
||||
"args": { "-ObjectPath": "{workDir}/DataProcessors/ТестЕдитДубль.xml", "-FormName": "Форма" }
|
||||
},
|
||||
{
|
||||
"script": "form-compile/scripts/form-compile",
|
||||
"input": {
|
||||
"title": "Тест",
|
||||
"attributes": [
|
||||
{ "name": "Объект", "type": "DataProcessorObject.ТестЕдитДубль", "main": true },
|
||||
{ "name": "Поле1", "type": "string(100)" }
|
||||
],
|
||||
"elements": [
|
||||
{ "input": "Поле1", "path": "Поле1", "title": "Поле 1" }
|
||||
]
|
||||
},
|
||||
"args": { "-JsonPath": "{inputFile}", "-OutputPath": "{workDir}/DataProcessors/ТестЕдитДубль/Forms/Форма/Ext/Form.xml" }
|
||||
}
|
||||
],
|
||||
"params": { "formPath": "DataProcessors/ТестЕдитДубль/Forms/Форма/Ext/Form.xml" },
|
||||
"expectError": true,
|
||||
"input": {
|
||||
"elements": [
|
||||
{ "input": "Поле1", "path": "Поле1", "title": "Дубль имени" }
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user