Skip to content

ChainTableを利用した際に、次のテーブルに遷移する前に表のテキストを追加で表示できる機能の追加#610

Open
h-mikisato wants to merge 2 commits intobcdice:masterfrom
h-mikisato:feature/result_chain
Open

ChainTableを利用した際に、次のテーブルに遷移する前に表のテキストを追加で表示できる機能の追加#610
h-mikisato wants to merge 2 commits intobcdice:masterfrom
h-mikisato:feature/result_chain

Conversation

@h-mikisato
Copy link
Copy Markdown
Contributor

これまではChainTableを特に工夫なく使った場合、

表1(X) > 表2(Y) > 表2の結果

のような表示となり、表1固有のテキストを表示することができませんでした。

今回ChainWithTextというクラスを作成し、これをChainTableの項目とした場合に、

表1(X) > 表1の結果 > 表2(Y) > 表2の結果

という表示を可能にしました。

同様のチェーン機能がD66Tableにも実装されていたため、こちらでも利用できるようにしてあります。

実用サンプルのために、独自のChainTableで実装されていた鋼鉄のユグドラシルの表をこの実装で書き換えました。

他にも同様の独自テーブルを実装しているシステムはあったが、一番単純に書き換えできたため
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2023

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.43%. Comparing base (ef09158) to head (1a387e0).
⚠️ Report is 469 commits behind head on master.

Files with missing lines Patch % Lines
lib/bcdice/dice_table/roll_result.rb 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #610      +/-   ##
==========================================
- Coverage   95.43%   95.43%   -0.01%     
==========================================
  Files         332      333       +1     
  Lines       18589    18598       +9     
  Branches     4825     4830       +5     
==========================================
+ Hits        17741    17749       +8     
- Misses        848      849       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ysakasin ysakasin self-requested a review March 17, 2023 18:42
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