raa0121 / GoBCDice

GoBCDice is BCDice reimplemented by Go.
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

ランダム選択コマンドを実装する #29

Closed ochaochaocha3 closed 5 years ago

ochaochaocha3 commented 5 years ago

ランダム選択コマンドを実装しました。Ruby版と機能は同じですが、選択肢の大文字小文字を保存する、項目内や区切りの , の周辺に空白を含められるようにする、という改良を施しました。

GoBCDice-choice
codecov[bot] commented 5 years ago

Codecov Report

Merging #29 into master will increase coverage by 1.13%. The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage   80.39%   81.53%   +1.13%     
==========================================
  Files          45       48       +3     
  Lines        1617     1749     +132     
==========================================
+ Hits         1300     1426     +126     
- Misses        217      220       +3     
- Partials      100      103       +3
Impacted Files Coverage Δ
pkg/core/object/object.go 75% <ø> (ø) :arrow_up:
pkg/core/token/token.go 90.9% <ø> (ø) :arrow_up:
pkg/core/ast/node.go 83.33% <ø> (ø) :arrow_up:
pkg/core/parser/parser.go 67.05% <100%> (ø) :arrow_up:
pkg/core/object/string.go 100% <100%> (ø)
pkg/core/lexer/lexer.go 94.87% <100%> (+2.71%) :arrow_up:
pkg/core/ast/choice.go 100% <100%> (ø)
pkg/core/notation/notation.go 77.39% <100%> (+1.84%) :arrow_up:
pkg/core/ast/string.go 100% <100%> (ø)
pkg/core/command/command.go 69.18% <75%> (+0.65%) :arrow_up:
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 733de78...97b1176. Read the comment docs.

codecov[bot] commented 5 years ago

Codecov Report

Merging #29 into master will increase coverage by 1.91%. The diff coverage is 95.74%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #29      +/-   ##
=========================================
+ Coverage   80.39%   82.3%   +1.91%     
=========================================
  Files          45      48       +3     
  Lines        1617    1752     +135     
=========================================
+ Hits         1300    1442     +142     
+ Misses        217     213       -4     
+ Partials      100      97       -3
Impacted Files Coverage Δ
pkg/core/token/token.go 90.9% <ø> (ø) :arrow_up:
pkg/core/ast/node.go 83.33% <ø> (ø) :arrow_up:
pkg/core/object/object.go 75% <ø> (ø) :arrow_up:
pkg/core/lexer/lexer.go 95.51% <100%> (+3.35%) :arrow_up:
pkg/bcdice/bcdice.go 88.37% <100%> (+0.87%) :arrow_up:
pkg/core/object/string.go 100% <100%> (ø)
pkg/core/ast/choice.go 100% <100%> (ø)
pkg/core/ast/string.go 100% <100%> (ø)
pkg/core/notation/notation.go 77.39% <100%> (+1.84%) :arrow_up:
pkg/core/parser/parser.go 67.05% <100%> (ø) :arrow_up:
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 733de78...2afaba0. Read the comment docs.