Skip to content

Commit

Permalink
test(sms): Increased unit test coverage.
Browse files Browse the repository at this point in the history
Signed-off-by: Flc゛ <four_leaf_clover@foxmail.com>
  • Loading branch information
flc1125 committed Jan 10, 2024
1 parent 7aaf958 commit 3bd0b88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sms/mitake/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"golang.org/x/text/encoding/traditionalchinese"

"github.com/go-kratos-ecosystem/components/v2/debug"
"github.com/go-kratos-ecosystem/components/v2/sms"
)

Expand Down Expand Up @@ -84,8 +83,6 @@ func (p *provider) Send(ctx context.Context, phone *sms.Phone, message *sms.Mess
}

Check warning on line 83 in sms/mitake/provider.go

View check run for this annotation

Codecov / codecov/patch

sms/mitake/provider.go#L82-L83

Added lines #L82 - L83 were not covered by tests
defer resp.Body.Close()

debug.Dump(resp.Body)

// check response
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("sms mitake: http status code: %d", resp.StatusCode)
Expand Down

0 comments on commit 3bd0b88

Please sign in to comment.