Skip to content

fix: TOProcessor#process の report_error 引数ミスを修正#76

Open
yokenzan wants to merge 2 commits intomasterfrom
fix/to-processor-report-error-arg
Open

fix: TOProcessor#process の report_error 引数ミスを修正#76
yokenzan wants to merge 2 commits intomasterfrom
fix/to-processor-report-error-arg

Conversation

@yokenzan
Copy link
Owner

Summary

  • report_error(e, context) と呼んでいたが、report_error の第2引数は severity(デフォルト Logger::WARN
  • context(Context オブジェクト)が severity として渡され、ログレベルが UNKNOWN になっていた
  • 他の全 Processor と同様に report_error(e) と1引数で呼ぶよう修正

Test plan

  • bundle exec rspec で全テスト通過を確認
  • マスタに存在しない特定器材コードを含む UKE ファイルのパース時、ログレベルが WARN で出力されることを確認

🤖 Generated with Claude Code

yokenzan and others added 2 commits February 10, 2026 10:49
report_error の第2引数は severity(デフォルト Logger::WARN)だが、
context(Context オブジェクト)が渡されていたためログレベルが UNKNOWN になっていた。
他の全 Processor と同様に report_error(e) と1引数で呼ぶように修正。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
以下のケースをカバー:
- 正常な TO レコードの処理
- マスタに存在しないコードの場合のダミー生成
- report_error が Logger::WARN で呼ばれることの検証
- TO レコード以外の入力に対する例外

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yokenzan yokenzan force-pushed the fix/to-processor-report-error-arg branch from 34782fb to bfe95c5 Compare February 10, 2026 02:23
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.

1 participant