mattn / go-mastodon

mastodon client for golang
MIT License
600 stars 85 forks source link

Update search to use v2 API endpoint #128

Closed muesli closed 4 years ago

muesli commented 4 years ago

v1 has been disabled on most instances by now. The change is minor: hash-tags are now reported as proper structs instead of a simple string-array.

mattn commented 4 years ago

Could you please fix tests?

muesli commented 4 years ago

@mattn Done! Sorry, I keep forgetting the tests in cmd/mstdn.

mattn commented 4 years ago

Thank you

codecov-io commented 4 years ago

Codecov Report

Merging #128 into master will decrease coverage by 0.39%. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #128     +/-   ##
========================================
- Coverage    80.1%   79.7%   -0.4%     
========================================
  Files          29      29             
  Lines        1503    1503             
========================================
- Hits         1204    1198      -6     
- Misses        205     211      +6     
  Partials       94      94
Impacted Files Coverage Δ
mastodon.go 70.22% <ø> (ø) :arrow_up:
status.go 85.62% <100%> (ø) :arrow_up:
cmd/mstdn/cmd_stream.go 59.09% <0%> (-3.04%) :arrow_down:
cmd/mstdn/main.go 65.81% <0%> (-1.46%) :arrow_down:

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 021f5d0...72a2d4f. Read the comment docs.