Skip to content

feat(matching): 共通フィクスチャと照合コアに仕向地「デンソー」を追加する (#107) - #113

Merged
rimtty merged 1 commit into
masterfrom
codex/denso-fixtures-cores
Sep 7, 2026
Merged

rimtty merged 1 commit into
masterfrom
codex/denso-fixtures-cores

Conversation

@rimtty

@rimtty rimtty commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Closes #107 (parent #106).

変更

  • shared/test-fixtures/matching-cases.json: 35 → 47 ケース。デンソーのかんばん 7 組(Vision デコードの 221 文字 JAMA 自己記述レコード)+ 別品番・隣品番・澤井ラベル・モルテンラベル・澤井 QR × デンソーラベルの不一致 5 件。schemaVersion は 2 のまま。テスト画像 denso-*.png 3 点を生成。
  • iOS ScanModels.swift: Destination.densoDensoKanbanRecord(ヘッダ長・項目定義・データ部桁合計の汎用解析、必須項目 104/112/152、項目番号重複の拒否)、detect は denso を先に判定(寛容な KanbanQRRecord.parseJAMA501195… をカード番号として通すため)、TagBarcodeRecord の仕向地別パターン(denso 6-4、未確定は 3 つの OR)、format(partNumber:destination:)(denso 10 桁 → 6-4)、BoxIdentity は QR 全文。Localizable.xcstringsデンソー/Denso
  • Android core/modelcore/matching: DENSO("denso")DensoKanbanQrRecord(Swift と同一規則)、detectDestinationexpectedQrLength(): Int?boxIdentitypartNumberFromQrformatPartNumber(_, destination)TagBarcodeRecord.isValidScanPayload(_, Destination?)。enum 追加で壊れる when 3 箇所と scan_destination_denso / history_destination_denso(ja/en)、HistoryExportLabels.destinationDenso
  • 澤井製作所・モルテンの挙動は不変(既存テストは件数断言 35 → 47 と「全仕向地で 4-2-4 が有効」ループの列挙以外変更なし)。

テスト

  • Android lintDebug testDebugUnitTest: 432 tests, 0 failures
  • iOS CodeMatchTests: 141 tests, 0 failures

🤖 Generated with Claude Code

…nd both matching cores

Adds Destination.denso / DENSO with a generic parser for the JAMA
self-describing kanban QR (header length, item descriptor list, exact
data-length check, required items 104/112/152), probes it before the
lenient sawai/molten checks, validates the 6-4@code product tag, formats
Denso part numbers as 6-4, and keys the box identity on the QR alone.
The shared fixture grows from 35 to 47 cases with the seven real
kanban/tag pairs plus cross-destination mismatches, and three denso test
images are generated. Sawai and molten behaviour is unchanged.

Refs #107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS/Android: 共通フィクスチャと照合コアに仕向地「デンソー」を追加する(JAMA 自己記述 QR・6-4 品番)

1 participant