go-language-server / protocol

Package protocol implements Language Server Protocol specification in Go
https://pkg.go.dev/go.lsp.dev/protocol
BSD 3-Clause "New" or "Revised" License
97 stars 15 forks source link

Add lack testcases #9

Closed zchee closed 4 years ago

zchee commented 4 years ago

What

Add lack testcases.

Why

Increase test coverage.

codecov[bot] commented 4 years ago

Codecov Report

Merging #9 into master will increase coverage by 30.8%. The diff coverage is 92.8%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #9      +/-   ##
=========================================
+ Coverage    33.8%   64.7%   +30.8%     
=========================================
  Files          25      25              
  Lines        3627    3669      +42     
=========================================
+ Hits         1229    2375    +1146     
+ Misses       2384    1269    -1115     
- Partials       14      25      +11
Flag Coverage Δ
#gojay 72.7% <92.8%> (+34.6%) :arrow_up:
#json 26.6% <100%> (+23.5%) :arrow_up:
Impacted Files Coverage Δ
general_gojay.go 83.6% <ø> (+0.2%) :arrow_up:
basic_gojay.go 91.4% <ø> (ø) :arrow_up:
diagnostics_gojay.go 89.6% <ø> (ø) :arrow_up:
basic.go 100% <ø> (+76.4%) :arrow_up:
window_gojay.go 89.4% <ø> (ø) :arrow_up:
language_gojay.go 92.9% <100%> (+92.9%) :arrow_up:
text_gojay.go 90.7% <100%> (+90.7%) :arrow_up:
util.go 100% <100%> (ø)
language.go 100% <100%> (+100%) :arrow_up:
registration_gojay.go 88.6% <100%> (+88.6%) :arrow_up:
... and 12 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 26476fb...e039522. Read the comment docs.