Skip to content

Commit

Permalink
chore: add sourcegraph badge (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: viney-shih <[email protected]>
  • Loading branch information
VineyAT and viney-shih committed Jun 20, 2022
1 parent 6913893 commit 5872ba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![codecov](https://codecov.io/gh/viney-shih/go-cache/branch/master/graph/badge.svg?token=QKRiNSU5Gn)](https://codecov.io/gh/viney-shih/go-cache)
[![Coverage Status](https://coveralls.io/repos/github/viney-shih/go-cache/badge.svg?branch=master)](https://coveralls.io/github/viney-shih/go-cache?branch=master)
[![Maintainability](https://api.codeclimate.com/v1/badges/5b70576957b8af88de6e/maintainability)](https://codeclimate.com/github/viney-shih/go-cache/maintainability)
[![Sourcegraph](https://sourcegraph.com/github.com/viney-shih/go-cache/-/badge.svg)](https://sourcegraph.com/github.com/viney-shih/go-cache?badge)
[![License](http:https://img.shields.io/badge/License-Apache_2-red.svg?style=flat)](http:https://www.apache.org/licenses/LICENSE-2.0)

<p align="center">
Expand Down
4 changes: 3 additions & 1 deletion event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ func (s *eventSuite) TestUnnormalEvent() {
}

func (s *eventSuite) TestListenNoEvents() {
mb := newMessageBroker(mockEventUUID, s.rds)
rds := NewRedis(s.ring).(*rds)
mb := newMessageBroker(mockEventUUID, rds)
s.Require().Equal(errNoEventType, mb.listen(mockEventCTX, []eventType{}, func(ctx context.Context, e *event, err error) {}))
mb.close()
}

0 comments on commit 5872ba1

Please sign in to comment.