Skip to content

Commit

Permalink
feat: use mock pkg instead of exposing rueidis mock fxn
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulPancake committed Jun 27, 2024
1 parent 1159825 commit 60f67d9
Show file tree
Hide file tree
Showing 4 changed files with 265 additions and 125 deletions.
5 changes: 0 additions & 5 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -1386,8 +1386,3 @@ func (m *prettyRedisMessage) MarshalJSON() ([]byte, error) {
}
return json.Marshal(obj)
}

// NewMockResult is a mock method to send back RedisResult with err for test coverage
func NewMockResult(val RedisMessage, err error) RedisResult {
return RedisResult{val: val, err: err}
}
Loading

0 comments on commit 60f67d9

Please sign in to comment.